:root {
  --ink: #173d34;
  --muted: #526861;
  --subtle: #74857e;
  --green: #6d8c31;
  --pale: #e4f2ea;
  --line: #dfe6dc;
  --cream: #fffefa;
  --on-forest: #f1f5ee;
  --on-forest-muted: #b8c9bc;
  --focus: #6d8c31;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
header {
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 5vw, 80px);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand i { color: var(--green); font-style: normal; }
.back { color: var(--muted); text-decoration: none; font-size: .92rem; }
.lang {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  max-width: 100%;
  font: inherit;
  font-size: .9rem;
}
.wrap { max-width: 1120px; margin: auto; padding: 0 24px; }
.hero {
  padding: 90px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.eyebrow { letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-size: .875rem; font-weight: 700; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -.06em; margin: 14px 0 24px; overflow-wrap: anywhere; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 500px; margin: 0; text-align: left; }
.hero-art { background: linear-gradient(145deg, #dfe9d3, #f6f8f3); border-radius: 34px; padding: 28px; display: flex; justify-content: center; }
.phone { width: min(290px, 100%); height: auto; display: block; box-shadow: 0 25px 55px #31432826; }
.toc { display: flex; gap: 10px; flex-wrap: wrap; border-block: 1px solid var(--line); padding: 20px 0; margin-bottom: 70px; }
.toc a { padding: 8px 14px; border-radius: 99px; background: var(--pale); color: var(--ink); text-decoration: none; font-size: .9rem; }
.toc a:hover { background: #e4ecd9; }
.chapter { padding: 24px 0 90px; scroll-margin-top: 104px; }
.chapter-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 34px; }
.num { font-size: 2.2rem; color: var(--green); font-weight: 700; }
.chapter h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; letter-spacing: -.04em; margin: 0 0 12px; overflow-wrap: anywhere; }
.chapter-intro { color: var(--muted); margin: 0; max-width: 680px; }
.grid, .split { display: grid; gap: 24px; align-items: start; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.screen-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #e8ede4;
  border-radius: 16px;
  background: linear-gradient(145deg, #eaf0e3, #f5f7f2);
}
/* Keep the complete processed image visible, regardless of its source ratio. */
.screen-stage img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 8px 22px #273d2012;
}
.feature-copy { padding: 20px 8px 10px; min-width: 0; text-align: left; }
.feature-copy h3, .feature-copy p { margin-left: 0; margin-right: 0; text-align: left; }
.feature h3 { font-size: 1.15rem; line-height: 1.4; margin: 0 0 8px; overflow-wrap: anywhere; }
.feature p { font-size: 1rem; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
#start {
  background: linear-gradient(135deg, #f2f6ed 0%, #fbfcf9 72%);
  border: 1px solid #e0e8da;
  border-radius: 30px;
  padding: 40px;
  margin-bottom: 66px;
}
#start .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#start .feature { box-shadow: 0 12px 28px #253d230a; }
.promo-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 720px; margin-top: 28px; }
.promo-strip img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; box-shadow: 0 12px 30px #31432818; }
.live-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: 24px; }
.live-feature .screen-stage img { max-width: 380px; }
.live-screen-stage { display: flex; justify-content: center; align-items: flex-start; }
.live-feature .live-screen-stage img { width: 100%; max-width: 380px; }
.live-feature .feature-copy { padding: 20px 8px 10px; align-self: start; }
.live-feature .feature-copy > div + div { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; }
.live-feature h3 { font-size: 1.4rem; }
.callout { background: #1e2b22; color: #eaf2e6; border-radius: 25px; padding: 28px 32px; margin-top: 28px; }
.callout p { color: #c8d5c9; margin: 6px 0 0; }
.footer { padding: 42px 0 70px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--ink); text-decoration: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }

@media (max-width: 900px) {
  .hero { gap: 30px; }
  #start { padding: 28px; }
  .live-feature { gap: 24px; padding: 18px; }
}
@media (max-width: 760px) {
  header { min-height: 68px; padding: 12px 20px; flex-wrap: wrap; }
  .back { order: 3; flex-basis: 100%; text-align: center; }
  .wrap { padding-inline: 20px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 40px 0; gap: 28px; }
  .hero-art { order: -1; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .grid, .split, #start .grid, .live-feature { grid-template-columns: minmax(0, 1fr); }
  .chapter { padding-bottom: 55px; scroll-margin-top: 140px; }
  .chapter-head { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .num { font-size: 1.8rem; }
  .toc { margin-bottom: 40px; }
  #start { padding: 24px 14px; border-radius: 24px; margin-bottom: 40px; }
  .feature { padding: 12px; }
  .screen-stage { padding: 12px; }
  .live-feature { padding: 14px; }
  .promo-strip { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; }
  .promo-strip img { max-width: 360px; }
}
.guide-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 36px; align-items: start; }
.guide-sidebar { position: sticky; top: 106px; min-width: 0; }
.guide-sidebar-label { margin: 0 0 12px; color: var(--green); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.guide-sidebar .toc { display: grid; gap: 4px; border: 0; padding: 0; margin: 0; }
.guide-sidebar .toc a { display: block; padding: 9px 12px; border-left: 2px solid transparent; border-radius: 0 10px 10px 0; background: transparent; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.guide-sidebar .toc a:hover, .guide-sidebar .toc a.is-active { border-left-color: var(--green); background: var(--pale); color: var(--ink); }
.guide-content { min-width: 0; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; gap: 0; } .guide-sidebar { position: sticky; top: 78px; z-index: 4; padding: 10px 0; background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(10px); } .guide-sidebar-label { display: none; } .guide-sidebar .toc { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 2px; scrollbar-width: none; } .guide-sidebar .toc::-webkit-scrollbar { display: none; } .guide-sidebar .toc a { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: #fff; white-space: nowrap; } .guide-sidebar .toc a:hover, .guide-sidebar .toc a.is-active { border-color: var(--green); background: var(--pale); } }

/* Distinct chapter compositions retain full, uncropped app screens. */
#start .grid { gap: 32px 24px; padding-bottom: 20px; }
#start .feature:nth-child(even) { transform: none; }
#start .screen-stage { background: #fff; border-color: transparent; overflow: hidden; }
#discover > .grid { gap: 18px; padding: 14px 8px 24px; }
#discover > .grid .feature { border: 0; background: transparent; padding: 0; }
#discover > .grid .feature:nth-child(1) .screen-stage { transform: rotate(-2deg); }
#discover > .grid .feature:nth-child(2) { padding-top: 0; }
#discover > .grid .feature:nth-child(3) .screen-stage { transform: rotate(2deg); }
#discover .feature-copy { padding-top: 20px; }
.recognition-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px; align-items: center; margin: 36px 0; padding: 36px; border: 0; border-radius: 36px; background: radial-gradient(ellipse at 10% 25%, #dce9b9, transparent 65%), #edf2e5; }
.recognition-feature .screen-stage { background: #fff; padding: 12px; transform: rotate(-2deg); box-shadow: 0 18px 36px #34432120; }
.recognition-feature .feature-copy { padding: 20px 0; align-self: center; }
.recognition-feature h3 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1.2; margin: 16px 0; }
.recognition-feature .eyebrow { font-size: .7rem; letter-spacing: .1em; }
.promo-strip { margin: 52px auto 24px; padding: 10px 16px; gap: 32px; max-width: 920px; align-items: start; }
.promo-feature { min-width: 0; }
.promo-media { overflow: hidden; border-radius: 22px; background: #f5f7f2; box-shadow: 0 12px 30px #31432818; }
.promo-media img { box-shadow: none; }
.promo-feature--collection .promo-media { transform: rotate(2deg); }
.promo-feature--visits .promo-media { transform: rotate(-2deg) translateY(18px); }
.promo-copy { padding: 28px 8px 6px; }
.promo-copy h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.35; }
.promo-copy p { margin: 0; color: var(--muted); font-size: 1rem; }
.live-feature { background: linear-gradient(150deg, #edf2e5, #fff 65%); border-radius: 32px; }
.live-feature .screen-stage { transform: rotate(-1.5deg); background: #fff; box-shadow: 0 18px 36px #273d201a; }
#events .split { gap: 32px; padding-bottom: 36px; }
#events .feature:last-child { transform: none; background: #f0f3e8; }
#messages .feature { border-top: 4px solid #8aa34b; border-radius: 4px 4px 24px 24px; }
#messages .screen-stage { background: #f5f3ed; border: 0; }
#care .feature { background: #f6f7f2; border-color: transparent; }
#care .screen-stage { background: #fff; }
#care .screen-stage img { aspect-ratio: auto; object-fit: contain; object-position: top center; }
@media (max-width: 760px) {
  #start .grid, #events .split { padding-bottom: 0; }
  #start .feature:nth-child(even), #events .feature:last-child { transform: none; }
  #discover > .grid { gap: 28px; padding-inline: 0; }
  #discover > .grid .feature:nth-child(2) { padding-top: 0; }
  #discover > .grid .feature:nth-child(1) .screen-stage, #discover > .grid .feature:nth-child(3) .screen-stage { transform: none; }
  .recognition-feature { grid-template-columns: minmax(0, 1fr); }
  .recognition-feature { padding: 22px; gap: 20px; border-radius: 26px; }
  .recognition-feature .screen-stage { transform: none; }
  .promo-strip { gap: 30px; margin-block: 32px; }
  .promo-feature--collection .promo-media, .promo-feature--visits .promo-media, .live-feature .screen-stage { transform: none; }
}
.recognition-feature h3, .chapter h2 { text-wrap: balance; }
@media (max-width: 900px) { .guide-sidebar .toc { flex-wrap: nowrap; max-width: 100%; } .chapter { scroll-margin-top: 150px; } }
@media (max-width: 760px) { .guide-sidebar { top: 109px; } .chapter { scroll-margin-top: 176px; } }
/* Allow navigation to follow the actual header height across languages and zoom. */
:root { --guide-header-height: 78px; }
.guide-sidebar { top: calc(var(--guide-header-height) + 24px); max-height: calc(100dvh - var(--guide-header-height) - 48px); overflow-y: auto; }
.chapter { scroll-margin-top: calc(var(--guide-header-height) + 26px); }
.eyebrow, .guide-sidebar-label { color: #587222; }
@media (min-width: 901px) and (max-width: 1100px) {
  .guide-layout { grid-template-columns: 156px minmax(0, 1fr); gap: 24px; }
  #start { padding: 28px; }
  .recognition-feature { gap: 24px; padding: 28px; }
}
@media (max-width: 900px) {
  .guide-sidebar { top: var(--guide-header-height); max-height: none; overflow: visible; }
  .guide-sidebar .toc a { min-height: 44px; display: inline-flex; align-items: center; }
  .chapter { scroll-margin-top: calc(var(--guide-header-height) + 84px); }
}
@media (max-width: 760px) {
  .hero-art { order: 0; }
  .hero h1 { margin-top: 12px; }
}

/* Shared homepage footer for the guide page. */
.hero-download-link {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 999px;
  background: #9fd8c1;
  color: #123f34;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-download-link:hover { transform: translateY(-2px); background: #a8e6d0; box-shadow: 0 12px 26px rgba(15,52,43,.15); }
.hero-download-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.bn-footer { width: 100%; padding: 47px 0 22px; background: #123f34; color: var(--on-forest); }
.bn-container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.bn-footer__top { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.9fr) auto; align-items: start; gap: clamp(34px, 5vw, 80px); padding-bottom: 34px; }
.bn-logo { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; color: #123f34; font-family: Georgia, serif; font-size: 21px; font-weight: 700; letter-spacing: .055em; text-decoration: none; }
.bn-logo__mark { display: block; width: 42px; height: 42px; flex: 0 0 42px; overflow: hidden; border-radius: 50%; background: transparent; }
.bn-logo__mark img { width: 58px; max-width: none; height: 58px; transform: translate(-8px, -8px); }
.bn-logo__wordmark { width: 104px; height: auto; }
.bn-logo--footer { gap: 9px; color: #123f34; }
.bn-logo--footer .bn-logo__mark { width: 42px; height: 42px; flex-basis: 42px; }
.bn-logo--footer .bn-logo__mark img { width: 58px; height: 58px; transform: translate(-8px, -8px); }
.bn-logo--footer .bn-logo__wordmark { width: 104px; filter: none; }
.bn-footer__top > div > p { margin: 13px 0 0; color: var(--on-forest-muted); font-size: 14px; }
.bn-footer__stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.bn-store-badge { --badge-width: 150px; --badge-height: 48px; display: inline-flex; width: var(--badge-width); height: var(--badge-height); flex: 0 0 var(--badge-width); align-items: center; overflow: hidden; border: 0; border-radius: 0; background: transparent; transition: transform .2s ease, box-shadow .2s ease; }
.bn-store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.2); }
.bn-store-badge:focus-visible { outline: 3px solid #9fd8c1; outline-offset: 4px; }
.bn-store-badge img { display: block; max-width: none; }
.bn-store-badge--apple img { width: var(--badge-width); height: var(--badge-height); }
.bn-store-badge--google { align-items: flex-start; }
.bn-store-badge--google img { width: 172px; height: 73px; transform: translate(-11px, -13px); }
.bn-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 28px clamp(20px, 3vw, 48px); }
.bn-footer__group { display: grid; align-content: start; gap: 10px; }
.bn-footer__group h2 { margin: 0 0 4px; color: var(--on-forest); font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1.25; }
.bn-footer__group a { color: var(--on-forest-muted); font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: color .18s ease; }
.bn-footer__group a:hover { color: #86d8bb; }
.bn-footer__toplink { color: #9fd8c1; font-size: 14px; font-weight: 600; text-decoration: none; }
.bn-footer__bottom { display: flex; justify-content: space-between; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.16); color: var(--on-forest-muted); font-size: 12px; }

@media (max-width: 860px) {
  .bn-footer__top { grid-template-columns: 1fr auto; gap: 28px 22px; }
  .bn-footer__top > div { grid-column: 1 / -1; }
  .bn-footer__nav { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
}
@media (max-width: 640px) {
  .bn-container { width: calc(100% - 36px); }
  .bn-footer { padding-top: 38px; }
  .bn-footer__top { grid-template-columns: 1fr; gap: 26px; }
  .bn-footer__top > div { grid-column: auto; }
  .bn-footer__nav { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .bn-footer__group:last-child { grid-column: 1 / -1; }
  .bn-footer__toplink { justify-self: start; }
  .bn-footer__bottom { flex-direction: column; gap: 8px; }
  .bn-logo--footer .bn-logo__mark { width: 35px; height: 35px; flex-basis: 35px; }
  .bn-logo--footer .bn-logo__mark img { width: 42px; height: 42px; transform: translate(-3.5px, -3.5px); }
  .bn-logo--footer .bn-logo__wordmark { width: 82px; }
  .bn-store-badge { --badge-width: 128px; --badge-height: 41px; }
  .bn-store-badge--google img { width: 147px; height: 62px; transform: translate(-9px, -11px); }
}

/* App feature showcase: Bird Insights, Birdnee Story and Live Chat. */
.message-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.message-feature {
  border-top: 4px solid #8aa34b;
  border-radius: 4px 4px 24px 24px;
  background: #fff;
  box-shadow: 0 16px 34px #263d2510;
}
.message-screen-stage {
  min-height: 320px;
  height: clamp(320px, 32vw, 430px);
  align-items: center;
  overflow: hidden;
  background: #f5f3ed;
}
.message-screen-stage img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.message-feature .feature-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.feature-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 0 5px;
  border: 0;
  border-bottom: 1px solid #9caea0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.feature-action:hover { color: var(--green); border-bottom-color: var(--green); }
.live-chat-preview {
  padding: 22px;
  background: linear-gradient(145deg, #eaf1df, #f9fbf7);
}
.chat-preview-window {
  display: flex;
  flex-direction: column;
  width: min(100%, 300px);
  min-height: 290px;
  overflow: hidden;
  border: 1px solid #d6e0ce;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 30px #3443211c;
}
.chat-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.chat-preview-header > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.chat-preview-header strong { font-size: .9rem; }
.chat-preview-header small { color: var(--muted); font-size: .72rem; }
.chat-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #dce9b9;
  color: #557026;
  font-weight: 800;
}
.chat-status { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #8aa34b; }
.chat-preview-body { display: grid; gap: 12px; flex: 1; padding: 16px 14px; align-content: end; background: #fbfcf9; }
.chat-bubble { max-width: 88%; margin: 0; padding: 10px 12px; border-radius: 14px; font-size: .78rem; line-height: 1.45; }
.chat-bubble--support { justify-self: start; background: #eaf1df; color: var(--ink); border-bottom-left-radius: 4px; }
.chat-bubble--visitor { justify-self: end; background: #1e2b22; color: #f5f7ef; border-bottom-right-radius: 4px; }
.chat-preview-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); color: #8a968e; font-size: .76rem; }
.feature-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90dvh, 820px);
  padding: 0;
  border: 0;
  background: transparent;
}
.feature-dialog::backdrop { background: #15231cb8; backdrop-filter: blur(5px); }
.feature-dialog__shell {
  position: relative;
  max-height: min(90dvh, 820px);
  overflow: auto;
  padding: 34px;
  border: 1px solid #dfe6dc;
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 0 28px 90px #10251d45;
}
.feature-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.feature-dialog__panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.feature-dialog__panel--chat { grid-template-columns: 1fr; gap: 18px; }
.feature-dialog__media { display: flex; justify-content: center; min-width: 0; max-height: 68dvh; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #f5f3ed; }
.feature-dialog__media img { display: block; width: 100%; height: auto; max-height: 68dvh; object-fit: contain; }
.feature-dialog__copy { min-width: 0; padding: 18px 10px; }
.feature-dialog__copy h2 { max-width: 12ch; margin: 10px 0 18px; color: var(--ink); font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -.055em; text-wrap: balance; }
.feature-dialog__copy p { max-width: 600px; color: var(--muted); font-size: 1.05rem; }
.feature-dialog__chat-wrap { height: min(560px, 60dvh); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.feature-dialog__chat-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
.feature-dialog__chat-fallback { color: var(--muted); font-size: .92rem; }
.feature-dialog__chat-fallback a { color: var(--ink); font-weight: 700; }
@media (max-width: 1000px) {
  .message-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .message-feature:last-child { grid-column: 1 / -1; }
  .message-feature:last-child .message-screen-stage { height: 360px; }
}
@media (max-width: 760px) {
  .message-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .message-feature:last-child { grid-column: auto; }
  .message-screen-stage { height: 360px; }
  .feature-dialog { width: min(calc(100vw - 20px), 680px); }
  .feature-dialog__shell { padding: 22px 16px; border-radius: 22px; }
  .feature-dialog__panel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .feature-dialog__media { max-height: 54dvh; }
  .feature-dialog__media img { max-height: 54dvh; }
  .feature-dialog__copy { padding: 8px 4px 12px; }
  .feature-dialog__copy h2 { font-size: clamp(2rem, 12vw, 3rem); }
  .feature-dialog__chat-wrap { height: 58dvh; }
}




/* The homepage App and Wikipedia profile are a single static reference image. */
.hero-art { padding: 0; background: transparent; border-radius: 0; align-items: center; }
.hero-composite { display: block; width: 100%; max-width: 720px; height: auto; border-radius: 26px; box-shadow: 0 25px 55px #31432826; }
@media (min-width: 761px) {
  .hero-composite { transform: scale(1.2); transform-origin: center center; position: relative; z-index: 1; }
}
@media (max-width: 760px) {
  .hero-composite { max-width: 620px; border-radius: 22px; }
}

/* Keep the guide directory readable on large screens. */
.guide-sidebar-label {
  font-size: clamp(.82rem, calc(.78rem + .15vw), .98rem);
  line-height: 1.3;
}
.guide-sidebar .toc { gap: 6px; }
.guide-sidebar .toc a {
  padding: 11px 14px;
  font-size: clamp(.95rem, calc(.9rem + .25vw), 1.05rem);
  line-height: 1.4;
  text-align: left;
}
@media (min-width: 1440px) {
  .guide-layout { grid-template-columns: minmax(220px, .22fr) minmax(0, 1fr); }
}

@media (min-width: 1600px) {
  .wrap { width: min(calc(100% - 96px), 1920px); max-width: 1920px; }
  .guide-layout { grid-template-columns: minmax(250px, .22fr) minmax(0, 1fr); }
  .guide-sidebar-label { font-size: 1.05rem; }
  .guide-sidebar .toc a { font-size: 1.2rem; padding-block: 13px; }
}

/* Fluid desktop layout for common monitor widths and browser zoom levels. */
html { font-size: 100%; }
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
.wrap { width: min(100%, 1440px); }
.hero > *, .guide-layout > *, .chapter-head > * { min-width: 0; }
.hero > div:first-child { width: 100%; max-width: 720px; }
.hero h1 { max-width: 12ch; color: var(--ink); text-wrap: balance; overflow-wrap: normal; }
.chapter h2, .feature h3 { color: var(--ink); }
.hero { gap: clamp(28px, 4vw, 56px); padding-block: clamp(56px, 6vw, 90px) clamp(48px, 5vw, 70px); }
.guide-layout { grid-template-columns: minmax(180px, .2fr) minmax(0, 1fr); gap: clamp(28px, 3.5vw, 56px); }
#start { padding: clamp(26px, 3vw, 40px); }
.screen-stage img { max-width: min(420px, 100%); }

@media (min-width: 1440px) {
  .wrap { padding-inline: clamp(32px, 4vw, 80px); }
  .guide-layout { grid-template-columns: minmax(200px, .2fr) minmax(0, 1fr); }
}

@media (min-width: 1101px) and (max-width: 1439px) {
  .wrap { padding-inline: clamp(24px, 3vw, 48px); }
  .hero-composite { transform: scale(1.08); }
  .recognition-feature { gap: clamp(24px, 3vw, 40px); padding: clamp(26px, 3vw, 36px); }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .hero-composite { transform: none; }
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .guide-sidebar { position: sticky; top: var(--guide-header-height); z-index: 4; padding: 10px 0; background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(10px); }
  .guide-sidebar-label { display: none; }
  .guide-sidebar .toc { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; gap: 8px; padding-bottom: 2px; scrollbar-width: none; }
  .guide-sidebar .toc::-webkit-scrollbar { display: none; }
  .guide-sidebar .toc a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: #fff; white-space: nowrap; }
  .recognition-feature, .live-feature { grid-template-columns: minmax(0, 1fr); }
  .recognition-feature { gap: 20px; }
  .live-feature { gap: 24px; }
  .chapter { scroll-margin-top: calc(var(--guide-header-height) + 84px); }
}

/* Final wide-screen override: use the available canvas for the guide and footer. */
@media (min-width: 1200px) {
  .wrap {
    width: calc(100% - clamp(48px, 5vw, 128px));
    max-width: none;
  }
  .bn-footer .bn-container {
    width: calc(100% - clamp(48px, 5vw, 128px));
    max-width: none;
  }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero > div:first-child { max-width: 820px; }
  .guide-layout { grid-template-columns: minmax(230px, .2fr) minmax(0, 1fr); }
}

/* Keep the guide directory and article column stacked below desktop widths.
   This final override follows the fluid desktop rules above so the mobile
   article never gets squeezed beside the horizontal directory. */
@media (max-width: 1100px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

