/* Kestrel brand layer for kestrelcapture.com.
   The shared styles.css is the Goodfriend Solutions house system (coral accent).
   This file swaps only the brand layer to Kestrel blue, per app-look-and-feel.
   Loaded AFTER styles.css so these win. */
:root {
  --accent:    #2559CE;   /* buttons/accents: deep blue, white text reads AA */
  --accent-hi: #2F6BF0;   /* hover */
  --link:      #2559CE;   /* text links */
  --link-hi:   #1C47A8;   /* link hover */
}

/* House .lumi-cta puts dark text on the accent; Kestrel buttons carry white text.
   (.ke-main already recolors to blue; this covers buttons outside ke-main too.) */
.lumi-cta { color: #fff; }
.lumi-cta:hover { color: #fff; }

/* Nav brand sub-label reads "by Goodfriend Solutions" in a quiet tone */
.brand-sub { color: var(--ink-faint); font-weight: 600; }

/* Nav "Join the beta" pill: Kestrel blue, not the house coral.
   Matches the .nav--light selector in styles.css (line 331) to win on specificity. */
.nav--light .pill--links a.is-cta { background: var(--accent); color: #fff; }
.nav--light .pill--links a.is-cta:hover { background: var(--accent-hi); color: #fff; }

/* Keep the floating nav pinned on phones too. The house stylesheet drops the
   nav to position:relative under 640px; on Kestrel we want it to stay visible
   as the page scrolls. The burger dropdown still anchors to the nav. */
@media (max-width: 640px) {
  .nav { position: sticky; top: 10px; z-index: 45; }
}

/* Page header band for the inner pages (Features, See it in action) */
.ke-pagehead { max-width: 62ch; margin: clamp(8px,2vw,24px) auto clamp(28px,4vw,48px); text-align: center; }
.ke-pagehead h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px,4.4vw,52px); line-height: 1.05; color: var(--ink); margin: 10px 0 0; }
.ke-pagehead__sub { color: var(--ink-muted); font-size: clamp(16px,1.3vw,19px); line-height: 1.55; margin: 16px 0 0; }

/* On the dedicated See it in action page, the page header already titles the
   gallery, so hide the script-built header to avoid a duplicate heading. */
[data-page="demos"] .sia__head { display: none; }

/* Home intro: three cards (why / what / where) */
.ke-intro { margin: clamp(40px,6vw,80px) 0 0; display: grid; gap: clamp(14px,1.6vw,22px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ke-intro__card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(22px,2.4vw,30px); transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.ke-intro__card:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--sh-soft); }
.ke-intro__card h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px,1.5vw,21px); color: var(--ink); margin: 12px 0 0; }
.ke-intro__card p { color: var(--ink-muted); font-size: 15.5px; line-height: 1.6; margin: 10px 0 0; }
.ke-intro__card .kc2-eyebrow { color: var(--accent); }
.ke-intro__time { margin: 12px 0 0; padding: 0; list-style: none; }
.ke-intro__time li { display: flex; gap: 9px; align-items: baseline; color: var(--ink-muted); font-size: 15px; padding: 6px 0; border-top: 1px solid var(--line); }
.ke-intro__time li:first-child { border-top: 0; }
.ke-intro__time b { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* Beta + contact forms (post cross-origin to the Goodfriend backend) */
.ke-formwrap { max-width: 560px; margin: clamp(8px,2vw,20px) 0 clamp(40px,6vw,72px); }
.kc-form { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(22px,3vw,34px); }
.kc-field { margin: 0 0 clamp(14px,1.8vw,20px); }
.kc-field label { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); margin: 0 0 7px; }
.kc-opt { color: var(--ink-faint); font-weight: 500; }
.kc-field input, .kc-field textarea, .kc-select select {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; transition: border-color .18s ease, box-shadow .18s ease; }
.kc-field textarea { resize: vertical; min-height: 72px; }
.kc-field input:focus, .kc-field textarea:focus, .kc-select select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.kc-field__hint { color: var(--ink-faint); font-size: 13px; margin: 6px 0 0; }
.kc-select { position: relative; }
.kc-select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.kc-select select { appearance: none; -webkit-appearance: none; padding-right: 36px; }
/* Honeypot: off-screen, never shown to a real person, not tab-reachable */
.kc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kc-form__submit { margin-top: 4px; border: 0; cursor: pointer; }
.kc-form__submit:disabled { opacity: .6; cursor: default; }
.kc-form__status { margin: 14px 0 0; font-size: 14.5px; font-weight: 600; border-radius: 12px; padding: 11px 13px; }
.kc-form__status.is-pending { color: var(--ink-muted); background: #fff; border: 1px solid var(--line); }
.kc-form__status.is-ok { color: #1C6B3A; background: #E8F6EC; border: 1px solid #BFE6CB; }
.kc-form__status.is-err { color: #9A2A1F; background: #FBEAE7; border: 1px solid #F2C6BE; }
.kc-form__fine { font-size: 13px; color: var(--ink-faint); margin: 14px 0 0; }

/* Two-column page layout: a box each side; stacks on small screens */
.ke-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,3vw,36px);
  align-items: start; margin: 0 0 clamp(40px,6vw,72px); }
.ke-split > .kc-form { margin: 0; }
@media (max-width: 880px) { .ke-split { grid-template-columns: 1fr; } }

/* Shared box shell (matches .kc-form) */
.ke-box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(22px,3vw,34px); }

/* Benefits / beta-pitch panel (right side of the beta page) */
.ke-benefits__group + .ke-benefits__group { margin-top: clamp(24px,3vw,32px); padding-top: clamp(22px,3vw,28px); border-top: 1px solid var(--line); }
.ke-benefits h2 { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); margin: 0 0 3px; letter-spacing: -.01em; }
.ke-benefits__lede { color: var(--ink-muted); font-size: 14px; line-height: 1.5; margin: 0 0 15px; }
.ke-ticks { list-style: none; margin: 0; padding: 0; }
.ke-ticks li { position: relative; padding-left: 30px; margin: 0 0 14px; }
.ke-ticks li:last-child { margin-bottom: 0; }
.ke-ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: #2F6BF0; }
.ke-ticks li::after { content: ""; position: absolute; left: 6px; top: 5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ke-ticks b { display: block; font-size: 15px; color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.ke-ticks span { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.ke-free { display: inline-block; font-size: 13px; font-weight: 700; color: #2559CE; background: #EAF1FE; border: 1px solid #CBDCFB; border-radius: var(--r-pill, 999px); padding: 5px 12px; margin-top: 2px; }

/* Intro column for the two-column contact layout (mirrors the GFS site) */
.ke-split__intro { align-self: center; }
.ke-split__intro h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px,3.6vw,46px); line-height: 1.06; color: var(--ink); margin: 10px 0 0; }
.ke-split__intro p { color: var(--ink-muted); font-size: clamp(15px,1.2vw,18px); line-height: 1.55; margin: 16px 0 0; max-width: 46ch; }
.ke-split__intro a { color: #2559CE; text-decoration: underline; }
@media (max-width: 880px) { .ke-split__intro p { max-width: none; } }

/* Centered final call-to-action band */
.ke-final { margin: clamp(56px,8vw,110px) 0 0; text-align: center; }
.ke-final h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px,3.2vw,42px); line-height: 1.08; color: var(--ink); margin: 0 auto; max-width: 18ch; }
.ke-final p { color: var(--ink-muted); font-size: clamp(15px,1.2vw,18px); margin: 14px auto 0; max-width: 46ch; }
.ke-final .lumi-cta { margin-top: clamp(20px,2.6vw,30px); }
.ke-final__note { font-size: 13.5px; color: var(--ink-faint); margin-top: 14px; }

/* ================= Mega menu (Compare + Why Kestrel) ================= */
.kmm-links { gap: clamp(4px,.6vw,8px); padding: clamp(8px,.9vw,10px) clamp(8px,1vw,12px); }
.kmm-link, .kmm-trigger {
  font-family: inherit; font-size: clamp(13px,1vw,15px); font-weight: 600; color: #4A4038;
  text-decoration: none; background: transparent; border: 0; cursor: pointer; line-height: 1;
  padding: 7px 12px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.kmm-link:hover, .kmm-trigger:hover, .kmm-trigger[aria-expanded="true"] { color: var(--ink); background: rgba(38,33,28,.06); }
.kmm-cta { color: #fff !important; background: var(--accent); padding: 8px 15px !important; }
.kmm-cta:hover { background: var(--accent-hi, #2F6BF0); }
.kmm-chev { width: 10px; height: 10px; transition: transform .2s; }
.kmm-trigger[aria-expanded="true"] .kmm-chev { transform: rotate(180deg); }

.kmm { position: relative; display: inline-flex; }
.kmm-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(600px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: 0 24px 60px -30px rgba(30,40,70,.35);
  padding: 16px; opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease; z-index: 60;
}
.kmm-panel.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.kmm-h { margin: 2px 0 8px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.kmm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.kmm-item { display: flex; gap: 11px; align-items: flex-start; padding: 10px 11px; border-radius: 12px; text-decoration: none; color: var(--ink); }
a.kmm-item:hover { background: var(--soft); }
.kmm-item.is-soon { cursor: default; }
.kmm-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; background: #E7EEFB; color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.kmm-t { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 7px; color: var(--ink); }
.kmm-d { font-size: 12.5px; color: var(--ink-muted); margin-top: 1px; line-height: 1.35; }
.kmm-soon { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); background: var(--soft-2); border-radius: 999px; padding: 1px 6px; }

@media (max-width: 640px) {
  .kmm-links {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 45;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; min-width: 250px; max-width: calc(100vw - 32px);
    border-radius: 18px; background: #fff; border: 1px solid var(--line);
    box-shadow: 0 24px 60px -24px rgba(30,40,70,.4); display: none;
  }
  .nav.is-open .kmm-links { display: flex; animation: gfRise .18s ease both; }
  .kmm-link, .kmm-trigger { width: 100%; justify-content: space-between; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
  .kmm { display: block; width: 100%; }
  .kmm-panel { position: static; transform: none; opacity: 1; visibility: visible; width: auto; box-shadow: none; border: 0; border-radius: 0; padding: 2px 4px 8px; display: none; }
  .kmm-panel.open { display: block; transform: none; }
  .kmm-grid { grid-template-columns: 1fr; gap: 0; }
  .kmm-h { display: none; }
  .kmm-item { padding: 10px 12px; }
  .kmm-ico { display: none; }
  .kmm-cta { justify-content: center; margin-top: 4px; }
}

.kmm-ico svg { width: 18px; height: 18px; display: block; }


/* Slim footer (Kestrel): one short band, links in a row */
.foot--slim{ margin-top:clamp(40px,5vw,72px); padding:clamp(18px,2.2vw,28px) clamp(20px,3vw,44px); }
.foot--slim .foot__grid{ display:flex; flex-wrap:wrap; align-items:center; gap:16px 28px; }
.foot--slim .foot__ask{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px 24px; width:100%; }
.foot--slim .foot__ask h2{ margin:0; font-size:clamp(20px,2vw,28px); line-height:1.2; }
.foot--slim .foot__cta{ margin-top:0; padding:10px 22px; color:#fff; }
.foot--slim .foot__cta:hover{ color:#fff; }
.foot--slim .foot__meta{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 28px; width:100%; padding-top:14px; border-top:1px solid rgba(255,255,255,.12); }
.foot--slim .foot__brand .brand-logo{ height:24px; width:auto; }
.foot--slim .foot__brand .name{ font-size:15px; }
.foot--slim .foot__links{ flex-direction:row; flex-wrap:wrap; gap:6px 22px; margin-top:0; }
.foot--slim .foot__copy{ margin:0 0 0 auto; font-size:13px; }
@media (max-width:640px){ .foot--slim .foot__copy{ margin-left:0; width:100%; } }

:root { --ks-ink: #0B1426; --ks-blue: #2F6BF0; }
