:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #172c24;
  background: #f7f6ef;
  --green: #10271f;
  --accent: #cbf19d;
  --border: #d6ddd1;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(70rem, calc(100% - 2 * clamp(1.1rem, 4vw, 3rem))); margin-inline: auto; }
.site-header { background: var(--green); color: #f7faf3; border-bottom: 1px solid #355347; }
.header-inner, nav { display: flex; align-items: center; flex-wrap: wrap; }
.header-inner { justify-content: space-between; column-gap: 1.5rem; padding-block: .55rem; }
.brand { font-weight: 800; text-decoration: none; }
.brand span { font-weight: 500; }
nav { column-gap: clamp(.9rem, 3vw, 2rem); }
nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
a { color: inherit; text-underline-offset: .23em; }
nav a:hover, .contact a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid #688d3e; outline-offset: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .7rem; color: var(--green); background: white; transform: translateY(-160%); z-index: 1; }
.skip:focus { transform: translateY(0); }
.hero { color: #f7faf3; background: var(--green); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(12rem, 1fr); gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 5.5vw, 4.7rem); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.04em; }
h1 { font-size: clamp(2.1rem, 4.7vw, 4.15rem); line-height: .98; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; }
h3 { font-size: 1.55rem; }
p { line-height: 1.65; }
.hero p { max-width: 35ch; margin-block: .85rem 1.2rem; color: #d0e0d6; font-size: 1.13rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-height: 44px; gap: .7rem; padding: .65rem .95rem; border-radius: .45rem; text-decoration: none; font-weight: 700; }
.primary { background: var(--accent); color: var(--green); }
.primary:hover { background: #e0f8c0; }
.field { width: 54%; aspect-ratio: 1; justify-self: center; position: relative; transform: rotate(45deg); border: 1px solid #648478; background: repeating-linear-gradient(0deg,#1b382d 0 15%,#203f33 15% 30%); }
.field i, .field b { position: absolute; background: #bfd88e; width: 5%; aspect-ratio: 1; }
.field i:nth-child(1) { top: -2.5%; left: -2.5%; }
.field i:nth-child(2) { top: -2.5%; right: -2.5%; }
.field i:nth-child(3) { bottom: -2.5%; left: -2.5%; }
.field i:nth-child(4) { bottom: -2.5%; right: -2.5%; }
.field b { top: 47.5%; left: 47.5%; border-radius: 50%; }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
article { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 1rem; row-gap: 1.15rem; padding: clamp(1.1rem, 3vw, 1.6rem); border: 1px solid var(--border); border-radius: .7rem; background: #fff; }
article img { border-radius: 1rem; background: var(--green); object-fit: contain; }
article p, .about p, .contact p { color: #40584a; margin-top: .35rem; max-width: 60ch; }
article .button { grid-column: 1 / -1; justify-self: start; }
.secondary { background: #edf3e8; color: var(--green); }
.secondary:hover { background: #dcebd5; }
.about { background: #e9efe4; border-block: 1px solid var(--border); }
.about-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.4rem; }
.contact a { overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--border); padding-block: 1.4rem; color: #40584a; font-size: .9rem; }
@media (max-width: 680px) {
  .hero-inner, .app-grid, .about-inner { grid-template-columns: 1fr; }
  .field { display: none; }
}

.platform { display: block; margin-top: 1rem; background: #e9efe4; }

/* Application pages share the company palette and accessible controls. */
.product-nav { border-top: 1px solid var(--border); background: #e9efe4; }
.product-nav nav { gap: .2rem 1.6rem; padding-block: .45rem; }
.product-nav a { font-size: 1rem; }
.product-nav [aria-current="page"] { font-weight: 750; text-decoration: underline; }
.product-hero { background: var(--green); color: #f7faf3; }
.product-hero-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 3rem); align-items: start; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.product-icon { width: clamp(5rem, 11vw, 8rem); height: auto; border-radius: 1.3rem; }
.product-hero h1 { font-size: clamp(2.25rem, 5vw, 4.2rem); line-height: 1.05; }
.product-tagline { font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.35; margin-top: 1rem; color: var(--accent); max-width: 36ch; }
.product-intro { color: #d0e0d6; margin-block: 1rem 1.5rem; max-width: 64ch; }
.product-kicker { color: #40584a; font-weight: 700; margin-bottom: .65rem; }
.product-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 2rem; }
.product-feature { border-top: 2px solid var(--border); padding-top: 1.2rem; }
.product-feature h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.product-feature p { margin-top: .5rem; color: #40584a; max-width: 56ch; }
.product-workflow { margin-top: 2.5rem; padding: 1.5rem; background: #e9efe4; border-radius: .7rem; }
.product-workflow h3 { font-size: 1.35rem; }
.product-workflow p { margin-top: .5rem; max-width: 70ch; }
.product-next { background: #e9efe4; border-block: 1px solid var(--border); }
.product-next .shell { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.product-next h2 { font-size: 1.8rem; }
.product-next p { max-width: 58ch; margin-top: .6rem; }
.product-note { margin-top: 1rem; color: #40584a; }
.related-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; }
.related-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
@media (max-width: 680px) {
  .product-hero-inner { grid-template-columns: 1fr; }
  .product-icon { width: 5rem; }
  .product-features { grid-template-columns: 1fr; gap: 1.5rem; }
  .app-grid article { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .app-grid article img { width: 56px; height: 56px; border-radius: .8rem; }
}

/* Pilot and Spotter use their native graphite panels and cyan controls. */
.studio-theme, .studio-card {
  --green: #14191e;
  --accent: #83e5f2;
  --border: #35424b;
  color: #f5f8fa;
  background: #14191e;
}
.studio-theme { color-scheme: dark; }
.studio-theme .site-header { border-color: var(--border); color: #f5f8fa; }
.studio-theme .product-hero { background: #14191e; }
.studio-theme .product-intro, .studio-theme .product-feature p,
.studio-theme .product-kicker, .studio-theme .product-note,
.studio-theme .contact p, .studio-theme footer, .studio-card p { color: #becbd4; }
.studio-theme .product-workflow, .studio-theme .product-next,
.studio-theme .product-nav { background: #20272e; }
.studio-theme .product-next .shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.studio-theme .product-next .shell > div { display: flex; gap: 1.2rem; align-items: flex-start; }
.companion-icon { flex: 0 0 72px; border-radius: .8rem; }
.companion-copy { min-width: 0; }
.studio-theme .primary:hover { background: #b2f2fb; }
.studio-theme .secondary, .studio-card .secondary { background: #83e5f2; color: #14191e; }
.studio-theme .secondary:hover, .studio-card .secondary:hover { background: #b2f2fb; }
.studio-theme a:focus-visible, .studio-card a:focus-visible { outline-color: #83e5f2; }
.studio-theme .product-intro a { color: #83e5f2; font-weight: 650; }
.product-nav h2 { font-size: 1.65rem; margin-bottom: .8rem; }
@media (max-width: 1000px) {
  .studio-theme .product-next .shell { grid-template-columns: minmax(0, 1fr); }
  .studio-theme .product-next .button { justify-self: start; }
}
@media (max-width: 480px) {
  .studio-theme .product-next .shell > div { flex-direction: column; }
}

.feature-artwork { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; align-items: center; }
.feature-artwork img { display: block; width: 100%; height: auto; border-radius: .4rem; }
.studio-demo { width: 75%; margin: 2.5rem auto 0; padding: clamp(.8rem, 2vw, 1.25rem); background: #20272e; border: 1px solid var(--border); border-radius: .8rem; }
.studio-demo > a { display: block; border: 1px solid var(--border); border-radius: .7rem; overflow: hidden; }
.studio-demo img { display: block; width: 100%; height: auto; }
.studio-demo figcaption { margin-top: .85rem; color: #becbd4; line-height: 1.6; }
.studio-demo figcaption strong { color: #83e5f2; }
@media (max-width: 480px) { .feature-artwork { grid-template-columns: 1fr; } .feature-artwork img { max-width: 15rem; } }

/* Give all five homepage panels the same subtle green tint. */
.app-grid article, .platform {
  --green: #10271f;
  --accent: #cbf19d;
  --border: rgba(62, 107, 74, .20);
  background: rgba(171, 214, 166, .12);
  color: #10271f;
}
.app-grid article p, .platform p { color: #40564a; }
.app-grid .secondary { background: #dce7d9; color: #183f31; border: 1px solid #a8bda6; }
.app-grid .secondary:hover { background: #cbdcc7; color: #10271f; border-color: #829e80; }
.app-grid a:focus-visible { outline-color: #10271f; }
.feature-artwork img { background: #20272e; padding: .75rem; }
@media (max-width: 680px) { .studio-demo { width: 100%; } }

.baseknock-gallery { margin: 2.5rem auto 0; padding: clamp(1rem, 3vw, 2rem); background: #e9efe4; border: 1px solid var(--border); border-radius: .8rem; }
.baseknock-gallery > p { margin-top: .5rem; color: #40584a; }
.device-screenshots { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 1.5rem; }
.device-screenshots figure { margin: 0; min-width: 0; }
.device-screenshots figure > a { display: block; width: fit-content; margin-inline: auto; }
.device-screenshots img { display: block; width: auto; max-width: 100%; height: auto; max-height: 38rem; border: 1px solid #c1ccbe; border-radius: .7rem; }
.device-screenshots figcaption { margin-top: .85rem; color: #40584a; line-height: 1.6; }
@media (max-width: 680px) { .device-screenshots { grid-template-columns: minmax(0, 1fr); } }

.gallery-group-title { margin: 2rem 0 1.1rem; font-size: 1.2rem; }
.scoring-comparison, .feature-screen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.feature-screen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-screen { min-width: 0; margin: 0; }
.feature-screen > a { display: block; width: fit-content; margin-inline: auto; }
.feature-screen img { display: block; width: auto; max-width: 100%; height: auto; max-height: 36rem; border: 1px solid #c1ccbe; border-radius: .7rem; }
.feature-screen figcaption { padding-top: 1rem; }
.feature-screen h4 { font-size: 1.15rem; margin: 0; }
.feature-screen p { color: #40584a; margin: .45rem 0 .6rem; }
.feature-screen figcaption > a { display: inline-flex; align-items: center; min-height: 44px; }
.pilot-capabilities { margin-top: 2.5rem; }
.pilot-capabilities h3 { font-size: 1.6rem; }
.pilot-capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2.5rem; margin-top: 1.25rem; }
.pilot-capability-grid h4 { margin: 0 0 .65rem; font-size: 1.15rem; color: #83e5f2; }
.pilot-capability-grid ul { margin: 0; padding-left: 1.2rem; color: #becbd4; line-height: 1.65; }
.pilot-capability-grid li + li { margin-top: .55rem; }
@media (max-width: 1000px) { .feature-screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .feature-screen-grid, .pilot-capability-grid { grid-template-columns: minmax(0, 1fr); } .scoring-comparison { gap: 1rem; } }

.compact-content { max-width: 60rem; }
.compact-hero { color: #f7faf3; background: #10271f; padding-block: clamp(2rem, 5vw, 3.5rem); }
.compact-hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.8rem); line-height: 1.05; }
.compact-hero p:not(.eyebrow) { margin-top: 1rem; max-width: 65ch; color: #d0e0d6; font-size: 1.08rem; }
.eyebrow { margin-bottom: .8rem; font-weight: 700; color: #cbf19d; }
.rules-content { padding-block: 2.5rem; }
.rules-content > section + section { margin-top: 2.5rem; }
.rules-content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.rules-content h3 { font-size: 1.25rem; margin-bottom: .65rem; }
.rules-content p { color: #40584a; }
.rules-content p + h3 { margin-top: 1.5rem; }
.rules-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.rules-note { margin-top: 1rem; font-size: 1rem; }
.rule-list { padding-left: 1.3rem; line-height: 1.7; color: #40584a; }
.rule-list li + li { margin-top: .6rem; }
.rules-table-wrap { overflow-x: auto; margin-top: 1.4rem; border: 1px solid #c1ccbe; border-radius: .5rem; }
.rules-table { width: 100%; border-collapse: collapse; font-size: 1rem; text-align: left; }
.rules-table caption { text-align: left; padding: .9rem; font-weight: 700; color: #10271f; background: #e9efe4; }
.rules-table th, .rules-table td { padding: .85rem; border-top: 1px solid #d6ddd1; vertical-align: top; line-height: 1.5; }
.rules-table thead { color: #f7faf3; background: #10271f; }
.rules-table tbody tr:nth-child(even) { background: #edf3e8; }
.rules-table tbody th { min-width: 10rem; }
.rules-table td:nth-child(2) { min-width: 8rem; }
.rules-table td:last-child { min-width: 13rem; }
.rules-example, .four-v-four-callout { padding: 1.5rem; border: 1px solid #c1ccbe; border-radius: .7rem; background: #e9efe4; margin-top: 1.5rem; }
.four-v-four-callout { margin-top: 2.5rem; }
.four-v-four-callout h3 { margin-block: .5rem; }
.four-v-four-callout .button { margin-top: 1rem; }
.four-screen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; margin-top: 1.5rem; }
.four-screen-grid .feature-screen img { max-height: 32rem; }
.four-screen-grid figcaption h3 { margin-bottom: 0; }
.back-row { margin-top: 2rem; }
.help-button { margin-top: .5rem; margin-left: .4rem; }
.guide-content { padding-block: 2.5rem; }
.guide-content h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.guide-intro { color: #becbd4; margin-top: 1rem; max-width: 68ch; }
.guide-toc { margin-top: 1.5rem; padding: 1rem; background: #20272e; border: 1px solid #35424b; border-radius: .6rem; gap: .3rem 1.5rem; }
.guide-toc a { color: #83e5f2; }
.guide-topic { margin-top: 2.5rem; scroll-margin-top: 1rem; }
.guide-topic h2 { font-size: 1.65rem; margin-bottom: 1rem; }
.guide-topic ol { padding-left: 1.35rem; color: #becbd4; line-height: 1.75; }
.guide-topic li + li { margin-top: .8rem; }
.guide-topic strong { color: #f5f8fa; }
.guide-topic details { border-top: 1px solid #35424b; padding-block: .5rem; }
.guide-topic summary { cursor: pointer; min-height: 44px; display: list-item; align-content: center; font-weight: 650; }
.guide-topic details p { color: #becbd4; margin: .5rem 0 1rem; max-width: 70ch; }
.guide-next { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }
.guide-next a { min-height: 44px; display: inline-flex; align-items: center; color: #83e5f2; }
.help-choices { display: grid; gap: 1rem; margin-top: 2rem; }
.help-choice { display: flex; gap: 1rem; align-items: center; padding: 1.5rem; background: #20272e; border: 1px solid #35424b; border-radius: .7rem; text-decoration: none; }
.help-choice img { border-radius: .75rem; }
.help-choice strong { display: block; color: #83e5f2; font-size: 1.3rem; }
.help-choice span span { display: block; margin-top: .5rem; color: #becbd4; line-height: 1.5; }
@media (max-width: 680px) { .rules-overview, .four-screen-grid { grid-template-columns: minmax(0, 1fr); } .help-button { margin-left: 0; } }

.table-scroll-hint { display: none; }
@media (max-width: 680px) { .table-scroll-hint { display: block; font-size: .95rem; color: #40564a; } }

.four-v-four-preview { display: block; width: min(100%, 17rem); margin: 1.25rem auto; }
.four-v-four-preview img { display: block; width: 100%; height: auto; border: 1px solid #c1ccbe; border-radius: .7rem; }
.four-v-four-preview:hover img { border-color: #183f31; }

.scouting-feature-logo { display: block; width: min(100%, 22rem); height: auto; margin-bottom: .8rem; }

/* Pair similar-length BaseKnock descriptions; give the branded feature its own row. */
.feature-scouting { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 2rem; }
.feature-scouting .scouting-feature-logo { margin-bottom: 0; }
@media (max-width: 680px) {
  .feature-scouting { display: block; }
  .feature-scouting .scouting-feature-logo { margin-bottom: .8rem; }
}
