body#ai > header {
  background: #fff;
  border-bottom: 1px solid #e0e4db;
}
#ai header a#logo { filter: brightness(0); opacity: .82; }
#ai nav#primary ul li a { color: #283e30; text-shadow: none; }
#ai nav#primary ul li a:is(:hover, :focus) { border-color: #4e8b32; }
#ai nav#primary ul li.login a { color: white; background: #336c2a; }
.tick-ai {
  --ink: #183d2a;
  --green: #2e693c;
  --muted: #485b50;
  --line: #d6ded3;
  color: var(--ink);
  background: #fff;
  font: 18px/1.5 "proxima-nova", "Helvetica Neue", Arial, sans-serif;
}
.tick-ai *, .tick-ai *::before, .tick-ai *::after { box-sizing: border-box; }
.tick-ai p, .tick-ai h1, .tick-ai h2, .tick-ai h3, .tick-ai h4 { padding: 0; }
.tick-ai h1, .tick-ai h2, .tick-ai h3, .tick-ai h4 { color: var(--ink); font-weight: 700; }
.tick-ai h1 {
  max-width: 9em;
  font-size: clamp(48px, 5.1vw, 74px);
  letter-spacing: -.055em;
  line-height: 1.01;
  text-wrap: balance;
}
.tick-ai h1 em { color: #427437; font-style: normal; }
.tick-ai h2 { font-size: clamp(34px, 3.7vw, 52px); line-height: 1.06; letter-spacing: -.045em; }
.tick-ai h3 { font-size: 25px; line-height: 1.2; letter-spacing: -.035em; }
.tick-ai h4 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; }
.tick-ai a { color: var(--green); text-underline-offset: 4px; }
.tick-ai :is(a, button, summary):focus-visible { outline: 3px solid #286eaa; outline-offset: 4px; }
.ai-width { width: min(1080px, calc(100% - 72px)); margin-inline: auto; }
.ai-hero { background: #f4f7ed; border-bottom: 1px solid var(--line); }
.ai-hero-grid, .ai-connect-grid, .ai-terminal-section { display: grid; align-items: center; gap: clamp(36px, 6vw, 88px); }
.ai-hero-grid { grid-template-columns: 1fr 1.02fr; padding-block: clamp(60px, 7.5vw, 108px); }
.ai-lead { max-width: 30em; color: var(--muted); font-size: 21px; line-height: 1.45; margin: 23px 0 30px; }
.ai-actions, .ai-links { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
.tick-ai .ai-button {
  display: inline-flex;
  padding: 12px 19px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 7px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.tick-ai .ai-outline { background: transparent; color: var(--ink); }
.tick-ai .ai-button:hover { background: #2e5839; color: white; }
.ai-text-link { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 600; }

.ai-demo {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cbd6c8;
  border-radius: 17px;
  box-shadow: 0 18px 40px -26px #264e35;
}
.ai-demo figcaption, .ai-terminal-title { display: flex; align-items: center; min-height: 43px; padding: 0 20px; font-size: 13px; font-weight: 700; }
.ai-demo figcaption { gap: 14px; background: #fafbf8; color: #506353; border-bottom: 1px solid #e0e6dd; }
.ai-demo figcaption { justify-content: space-between; }
.ai-demo-choice { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ai-demo-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ai-demo-choice label { padding: 3px 8px; border-radius: 4px; color: var(--muted); cursor: pointer; }
.ai-demo-choice input:checked + label { color: #24492e; background: #e4eddc; }
.ai-demo-choice input:focus-visible + label { outline: 2px solid #286eaa; outline-offset: 1px; }
.ai-demo:not(:has(#example-week:checked)) .ai-demo-week,
.ai-demo:has(#example-week:checked) .ai-demo-budget { display: none; }
.ai-week-hours { margin: 0; }
.ai-week-hours div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-top: 1px solid var(--line); padding: 3px 0; }
.ai-week-hours dd { font-weight: 600; }
.ai-conversation { padding: clamp(17px, 2.2vw, 30px); }
.tick-ai .ai-question {
  width: fit-content;
  max-width: 83%;
  margin: 0 0 19px auto;
  padding: 11px 15px;
  border-radius: 14px 14px 3px 14px;
  background: #e8f0df;
  color: #304d32;
  font-size: 16px;
  line-height: 1.35;
}
.ai-answer { padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; }
.ai-answer strong { font-size: 16px; }
.ai-balance { display: block; margin: 3px 0 8px; font-size: 40px; font-weight: 700; line-height: 1.2; letter-spacing: -.055em; }
.ai-balance small { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.ai-meter { height: 9px; border-radius: 6px; background: #e6eddf; overflow: hidden; }
.ai-meter span { display: block; width: 70%; height: 100%; background: #609444; }
.ai-answer p { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; color: var(--muted); font-size: 13px; }
.ai-result { margin-top: 15px; font-size: 16px; }
.ai-workflows, .ai-connect-grid, .ai-terminal-section { padding-block: clamp(50px, 6vw, 88px); }
.ai-workflows > h2 { margin-bottom: 30px; }
.ai-prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai-prompt { display: flex; flex-direction: column; align-items: start; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.ai-prompt blockquote { margin: 0 0 10px; color: var(--muted); font-size: 17px; }
.tick-ai .ai-copy {
  border: 1px solid #c4d2bf;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  line-height: 1.3;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 11px;
  cursor: pointer;
  white-space: nowrap;
}
.tick-ai .ai-copy:hover { background: #ecf4e6; }
.ai-prompt .ai-copy { margin-top: auto; }
.ai-connect { position: relative; background: #f3f6ef; border-block: 1px solid var(--line); }
.ai-instructions h3 { scroll-margin-top: 28px; }
.ai-connect-grid, .ai-terminal-section { grid-template-columns: .85fr 1.15fr; }
.ai-connect-grid { align-items: start; }
.ai-connect-grid > div > p, .ai-terminal-section > div > p { margin-top: 16px; color: var(--muted); }
.ai-client-switch { display: inline-flex; padding: 4px; margin-top: 24px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.ai-client-switch a { padding: 7px 17px; font-size: 16px; font-weight: 600; border-radius: 6px; text-decoration: none; }
.ai-setup-panel { display: none; }
.ai-setup-panel:has(:target),
.ai-connect:not(:has(.ai-setup-panel :target)) .ai-setup-panel[data-current],
.ai-connect:not(:has(.ai-setup-panel :target, .ai-setup-panel[data-current])) .ai-setup-panel:first-child { display: block; }
.ai-client-switch a[aria-current="location"],
.ai-connect:not(:has(.ai-client-switch [aria-current], .ai-setup-panel :target)) a[href="#connect-chatgpt"],
.ai-connect:has(#connect-chatgpt:target) .ai-client-switch a[href="#connect-chatgpt"],
.ai-connect:has(#connect-claude:target) .ai-client-switch a[href="#connect-claude"],
.ai-connect:has(#connect-codex:target) .ai-client-switch a[href="#connect-codex"] { background: var(--ink); color: white; }
.ai-instructions { min-width: 0; padding: clamp(20px, 3vw, 38px); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.ai-instructions ol { list-style: decimal; padding-left: 1.4em; }
.ai-instructions li { margin-top: 18px; padding-left: 3px; }
.ai-instructions li::marker { color: #56784c; font-weight: 700; }
.ai-instructions p { font-size: 16px; line-height: 1.5; margin: 5px 0; color: var(--muted); }
.ai-questions { background: #f3f6ef; border-top: 1px solid var(--line); }
.ai-questions details { border-bottom: 1px solid #c4d0bf; padding: 16px 0; }
.ai-questions details:first-child { border-top: 1px solid #c4d0bf; }
.ai-questions summary { cursor: pointer; font-weight: 700; line-height: 1.35; }
.ai-questions details p { margin-top: 10px; font-size: 16px; color: var(--muted); }
.ai-command { display: flex; align-items: start; gap: 8px; margin: 9px 0; padding: 10px; border-radius: 7px; background: #f2f5ef; }
.ai-command pre { flex: 1; min-width: 0; }
.tick-ai code { font: .86em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.tick-ai pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-terminal { min-width: 0; border-radius: 12px; background: #193829; color: #eef7e3; }
.ai-terminal-title { justify-content: space-between; padding-block: 10px; color: #d4e5ce; border-bottom: 1px solid #425c49; }
.ai-terminal pre { padding: 23px; }
.ai-links { margin-top: 20px; gap: 8px 18px; font-size: 16px; font-weight: 600; }
.ai-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 780px) {
  .ai-hero-grid, .ai-connect-grid, .ai-terminal-section { grid-template-columns: 1fr; }
  .ai-width { width: min(620px, calc(100% - 40px)); }
  .ai-prompt-grid { grid-template-columns: 1fr; }
  .ai-hero-grid { gap: 32px; }
  .ai-lead { font-size: 19px; }
  .ai-prompt { gap: 8px; }
}
@media (max-width: 400px) {
  .ai-width { width: calc(100% - 28px); }
  .tick-ai h1 { font-size: clamp(40px, 12vw, 48px); }
  .tick-ai .ai-button { padding: 11px 12px; font-size: 15px; }
  .ai-actions { gap: 8px; }
  .ai-demo figcaption { padding-inline: 12px; gap: 6px; }
  #ai nav#primary ul li:not(.login) { padding-left: 3px; }
  #ai nav#primary ul li a { font-size: 14px; }
  .ai-command { flex-wrap: wrap; }
  .ai-conversation { padding: 13px; }
}

@media (min-width: 701px) {
  #ai > header > .wrapper {
    display: flex;
    align-items: center;
    gap: clamp(15px, 4vw, 60px);
    width: min(1080px, calc(100% - 56px));
    max-width: none;
    height: 100%;
    padding: 0;
  }
  #ai header a#logo { flex-shrink: 0; top: 0; margin: 0; }
  #ai nav#primary { flex: 1; }
  #ai nav#primary ul { display: flex; align-items: center; gap: clamp(14px, 2.8vw, 40px); }
  #ai nav#primary li { padding: 0; margin: 0; }
  #ai nav#primary li.blog { margin-left: auto; }
}
