.marketing-mode {
  --bg: #fafbf9;
  --panel: #ffffff;
  --ink: #182b28;
  --muted: #566762;
  --line: #dce3df;
  --accent: #216b57;
  --topbar-bg: rgba(250, 251, 249, 0.96);
  background: var(--bg);
  letter-spacing: 0;
}
.marketing-mode main { max-width: none; padding: 0; }
.marketing-mode .topbar {
  margin: 0; padding: 19px max(28px, calc((100% - 1180px) / 2));
  min-height: 80px; flex-direction: row; align-items: center;
  background: var(--topbar-bg); border-bottom: 1px solid var(--line);
}
.marketing-mode .brand-wordmark {
  color: var(--ink); font-size: 25px; font-weight: 750;
  text-decoration: none; text-transform: none; white-space: nowrap;
}
.brand-dot { color: var(--accent); }
.marketing-mode .topbar-actions { width: auto; flex-wrap: nowrap; align-items: center; gap: 22px; }
.marketing-mode .nav-link-button { border: 0; padding: 6px 0; font-size: 14px; font-weight: 550; }
.marketing-mode .nav-sign-in {
  border-radius: 6px; border: 1px solid var(--line); box-shadow: none;
  color: var(--ink); font-weight: 600; font-size: 14px;
  padding: 11px 17px; text-decoration: none;
}
.marketing-mode a:focus-visible, .marketing-mode summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 5px;
}
.marketing-mode .auth-page { padding: 64px 24px; min-height: 75vh; }
.marketing-page { display: block; }
.welcome-hero { position: relative; isolation: isolate; overflow: hidden; background: #dce0df; color: #182b28; }
.welcome-image { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.welcome-inner {
  max-width: 1236px; margin: auto; padding: 64px 28px;
  min-height: min(650px, calc(100svh - 148px));
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.kicker { font-size: 12px; line-height: 1.5; font-weight: 650; margin: 0 0 22px; }
.welcome-inner h1 { max-width: 660px; font-size: 64px; font-weight: 550; line-height: 1.08; margin: 0 0 25px; }
.welcome-inner h1 em { font-family: Georgia, serif; font-weight: 400; white-space: nowrap; }
.welcome-description { max-width: 465px; font-size: 18px; line-height: 1.65; margin: 0 0 28px; }
.welcome-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.marketing-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  width: max-content; max-width: 100%; min-height: 46px; padding: 13px 20px;
  border: 0; border-radius: 6px; background: #216b57; color: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background 150ms ease;
}
.marketing-button:hover { background: #174f41; }
.text-link { color: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 2px; }
.welcome-note { margin: 24px 0 0; font-size: 12px; }
.marketing-section { max-width: 1236px; padding: 84px 28px; margin: auto; }
.possibilities { padding-top: 40px; }
.section-intro { max-width: 650px; margin-bottom: 46px; }
.marketing-section h2, .closing-band h2 { font-size: 36px; font-weight: 550; line-height: 1.18; margin: 0 0 16px; }
.marketing-section .kicker { color: var(--accent); }
.section-intro > p:last-child, .training-copy > p:not(.kicker) { font-size: 17px; line-height: 1.65; color: var(--muted); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; }
.benefit-grid article { min-width: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.benefit-index { display: block; font-size: 12px; color: var(--muted); margin-bottom: 28px; }
.benefit-grid h3, .connection-steps h3 { font-size: 23px; font-weight: 550; margin: 0 0 12px; }
.benefit-grid p, .connection-steps p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.benefit-grid blockquote { margin: 24px 0 0; padding-left: 15px; border-left: 2px solid #97b7a4; font-family: Georgia, serif; font-style: italic; font-size: 18px; line-height: 1.55; }
.training-band { background: #edf1eb; }
.training-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; }
.training-copy { max-width: 440px; }
.training-copy .text-link { display: inline-block; margin-top: 14px; }
.log-example { min-width: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.log-example figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 25px; }
.example-exercise { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.example-exercise img { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; background: #dff2fb; }
.example-exercise h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.example-exercise p { font-size: 13px; color: var(--muted); margin: 0; }
.log-example table { border-collapse: collapse; width: 100%; font-size: 14px; text-align: left; }
.log-example th { font-size: 11px; font-weight: 550; color: var(--muted); padding: 8px 0; }
.log-example td { padding: 12px 0; border-top: 1px solid var(--line); }
.log-example th:last-child, .log-example td:last-child { text-align: right; }
.example-check { display: inline-grid; place-items: center; width: 24px; height: 24px; background: #e4efe7; color: #216b57; border-radius: 4px; }
.example-footer { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.connection-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 42px; list-style: none; padding: 0; counter-reset: connect; margin: 0 0 35px; }
.connection-steps li { counter-increment: connect; border-top: 1px solid var(--line); padding-top: 20px; }
.connection-steps li::before { content: counter(connect, decimal-leading-zero); display: block; color: var(--accent); font-size: 12px; margin-bottom: 22px; }
.marketing-faq { display: grid; grid-template-columns: 1fr 1.65fr; gap: 60px; padding-top: 30px; }
.faq-list details { padding: 20px 0; border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-size: 16px; font-weight: 550; line-height: 1.5; padding-right: 12px; }
.faq-list p { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.closing-band { background: #e5edbf; color: #243523; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 55px; padding-bottom: 55px; }
.closing-inner .kicker { color: #41533a; margin-bottom: 14px; }
.closing-inner p:last-child { margin: 0; font-size: 15px; line-height: 1.6; }
.marketing-mode .app-credit { max-width: 1236px; margin: auto; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 12px; line-height: 1.6; }
.marketing-mode .footer-brand { margin-right: auto; }
.app-shell:not(.marketing-mode) .footer-brand, .app-shell:not(.marketing-mode) .app-credit > a[href="./ai-access.html"] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.connection-hero { padding-top: 70px; padding-bottom: 35px; }
.connection-hero h1 { font-size: 52px; line-height: 1.15; font-weight: 550; max-width: 740px; margin-bottom: 24px; }
.connection-hero > p:last-child { max-width: 620px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.technical-section { border-top: 1px solid var(--line); }
.technical-section > p { max-width: 720px; color: var(--muted); line-height: 1.7; }
.endpoint-list { margin: 30px 0; }
.endpoint-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; border-top: 1px solid var(--line); padding: 18px 0; }
.endpoint-list dt { font-size: 14px; font-weight: 600; }
.endpoint-list dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.technical-section code { font-size: 13px; }
.technical-section li { line-height: 1.8; margin-bottom: 6px; }
@media (prefers-color-scheme: dark) {
  .marketing-mode { --bg: #111816; --panel: #1b2420; --ink: #edf3ed; --muted: #afbab3; --line: #33423a; --accent: #92cbb0; --topbar-bg: rgba(17,24,22,.96); }
  .training-band { background: #18231e; }
  .closing-band { background: #d8e4b4; }
  .welcome-hero { color: #182b28; }
}
@media (min-width: 1600px) {
  .welcome-image { object-position: center 57%; }
}
@media (max-width: 900px) {
  .welcome-inner h1 { font-size: 52px; max-width: 560px; }
  .welcome-description { max-width: 390px; }
  .welcome-image { object-position: 35% center; }
  .training-layout { gap: 40px; }
  .benefit-grid, .connection-steps { gap: 26px; }
  .marketing-faq { gap: 30px; }
}
@media (max-width: 640px) {
  .marketing-mode .topbar { padding: 16px 20px; min-height: 72px; gap: 12px; }
  .marketing-mode .brand-wordmark { font-size: 22px; }
  .marketing-mode .topbar-actions { gap: 12px; }
  .marketing-mode .nav-link-button { font-size: 12px; }
  .marketing-mode .nav-sign-in { font-size: 13px; padding: 10px 12px; }
  .welcome-inner { padding: 44px 22px 38px; min-height: min(640px, calc(100svh - 128px)); justify-content: flex-start; }
  .welcome-image { object-position: right bottom; }
  .welcome-inner h1 { font-size: 42px; max-width: 380px; margin-bottom: 22px; }
  .welcome-description { font-size: 16px; max-width: 350px; }
  .welcome-actions { gap: 20px; }
  .welcome-note { display: none; }
  .kicker { margin-bottom: 18px; }
  .marketing-section { padding: 52px 22px; }
  .marketing-section h2 { font-size: 29px; }
  .section-intro { margin-bottom: 32px; }
  .section-intro > p:last-child, .training-copy > p:not(.kicker) { font-size: 16px; }
  .benefit-grid, .connection-steps, .training-layout, .marketing-faq { grid-template-columns: 1fr; gap: 30px; }
  .benefit-index { margin-bottom: 16px; }
  .benefit-grid h3, .connection-steps h3 { font-size: 22px; }
  .benefit-grid blockquote { margin-top: 18px; }
  .log-example { padding: 22px; }
  .closing-inner { flex-direction: column; align-items: flex-start; }
  .marketing-mode .app-credit { padding: 25px 22px; gap: 12px 22px; }
  .footer-brand { width: 100%; }
  .marketing-mode .auth-page { padding: 36px 20px; }
  .connection-hero h1 { font-size: 38px; }
  .connection-hero > p:last-child { font-size: 17px; }
  .endpoint-list > div { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 360px) {
  .marketing-mode .topbar { padding: 14px; }
  .marketing-mode .brand-wordmark { font-size: 19px; }
  .marketing-mode .nav-link-button { font-size: 11px; white-space: nowrap; }
  .marketing-mode .topbar-actions { gap: 8px; }
  .welcome-inner h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-button { transition: none; }
}
