:root {
  --ink: #122b36;
  --blue: #13b5ea;
  --yellow: #facc15;
  --paper: #f7f9f8;
  --muted: #52656d;
  --line: #dce5e7;
  --green: #12664e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: white;
}

a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #975a00;
  outline-offset: 5px;
}

.wrap {
  width: min(920px, calc(100% - 48px));
  margin: auto;
}

.wrap-wide {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}

header {
  background: var(--yellow);
  border-bottom: 1px solid #122b3620;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 20px;
  letter-spacing: -1px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a { text-decoration: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.button.small { padding: 9px 14px; font-size: 13px; }
.button.secondary {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.hero-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 34px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--muted);
}

h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 0 0 14px;
  font-weight: 800;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 680px;
  margin: 0;
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
}

.notice strong { color: var(--ink); }

.content {
  padding: 40px 0 64px;
}

.capabilities-bar {
  margin: 28px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
}

.capabilities-bar > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.2px;
  background: var(--ink);
  color: white;
  user-select: none;
}

.capabilities-bar > summary::-webkit-details-marker { display: none; }

.capabilities-bar > summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  flex: none;
}

.capabilities-bar[open] > summary::after { content: "–"; }

.capabilities-bar-body {
  padding: 16px 18px 6px;
  background: white;
  border-top: 1px solid var(--line);
}

.capabilities-bar-body > p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
}

.capabilities-bar table {
  margin-bottom: 12px;
}

.capabilities-bar th:first-child,
.capabilities-bar td:first-child {
  width: 34%;
  font-weight: 700;
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.topic-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 16px;
  background: white;
  transition: border-color .15s, transform .15s;
}

.topic-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.topic-card h2 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -.3px;
}

.topic-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.article h2 {
  font-size: 22px;
  letter-spacing: -.4px;
  margin: 34px 0 12px;
}

.article h3 {
  font-size: 17px;
  margin: 24px 0 10px;
}

.article p, .article li {
  font-size: 16px;
  color: var(--ink);
}

.article ul, .article ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.article li { margin-bottom: 8px; }

.article .muted { color: var(--muted); }

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 8px;
}

.example {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  white-space: pre-wrap;
  margin: 0 0 18px;
}

.example-figure {
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  max-width: 520px;
}

.example-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-figure {
  max-width: 100%;
}

.example-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0 0 18px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--paper);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.email-control-callout {
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid #e9dfb2;
  border-left: 5px solid var(--yellow);
  border-radius: 10px;
  background: #fff9df;
}

.email-control-callout strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.email-control-callout p {
  margin: 0;
}

.settings-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.instruction-table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.instruction-table-wrap:focus-visible {
  outline: 3px solid #975a00;
  outline-offset: 3px;
}

.instruction-table {
  min-width: 820px;
  margin: 0;
}

.instruction-table th,
.instruction-table td {
  padding: 16px 14px;
}

.instruction-table th {
  background: #eef5f6;
}

.instruction-table tr:last-child td {
  border-bottom: 0;
}

.instruction-action { width: 21%; }
.instruction-example { width: 38%; }
.instruction-result { width: 41%; }

.instruction-bubble {
  position: relative;
  display: block;
  padding: 12px 14px;
  border: 1px solid #e9dfb2;
  border-radius: 10px;
  background: #fff9df;
  font-weight: 700;
  line-height: 1.45;
}

.instruction-bubble::after {
  position: absolute;
  bottom: -6px;
  left: 20px;
  width: 10px;
  height: 10px;
  border-right: 1px solid #e9dfb2;
  border-bottom: 1px solid #e9dfb2;
  background: #fff9df;
  content: "";
  transform: rotate(45deg);
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.page-nav a { text-underline-offset: 3px; }

.footer {
  padding: 28px 0;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.footer-row a {
  margin-left: 18px;
  text-underline-offset: 4px;
}

.footer p { margin: 0; max-width: 900px; }

.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  margin: 22px 0 0;
}

.help-toc a { text-underline-offset: 3px; }

@media (max-width: 700px) {
  .wrap, .wrap-wide { width: calc(100% - 32px); }
  .nav-links .text-link { display: none; }
  .topic-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; gap: 10px; }
  .footer-row a { margin: 0 16px 0 0; }
  h1 { font-size: 34px; }
  .content { padding: 28px 0 48px; }
  .email-control-callout { padding: 16px; }
  .instruction-table-wrap {
    overflow: visible;
    border: 0;
  }
  .instruction-table {
    display: block;
    min-width: 0;
  }
  .instruction-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .instruction-table tbody,
  .instruction-table tr,
  .instruction-table td {
    display: block;
    width: 100%;
  }
  .instruction-table tr {
    margin-bottom: 14px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  .instruction-table td {
    padding: 6px 0;
    border: 0;
  }
  .instruction-table td:first-child {
    padding-top: 0;
    font-size: 16px;
  }
  .instruction-table td:nth-child(2)::before,
  .instruction-table td:nth-child(3)::before {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
  }
  .instruction-table td:nth-child(2)::before {
    content: "Example email to your AI";
  }
  .instruction-table td:nth-child(3)::before {
    content: "What happens";
  }
}
