/*
 * KnockTurf public site: the components the front page, the features page,
 * the canvasser app page and the audience pages share. Built on the brand
 * tokens in brand.css; the lamp amber stays in the logo, as brand.css asks.
 */

/* ---- Navigation ---------------------------------------------------------- */
.nav .btn--cta { background: var(--brand-paper); color: var(--brand-night);
                 padding: 10px 18px; font-weight: 600; }
.nav .btn--cta:hover { background: #fff; }
.nav a.link[aria-current="page"] { color: var(--brand-paper); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100;
        background: #fff; color: var(--brand-night); padding: 10px 14px;
        border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---- Split hero: words left, phones right -------------------------------- */
.hero--split { text-align: left; padding: 72px 28px 0; overflow: hidden; }
.hero--split .wrap { max-width: 1120px; margin: 0 auto; display: grid;
                     grid-template-columns: 1.05fr .95fr; gap: 48px;
                     align-items: end; }
.hero--split h1 { margin: 0 0 18px; max-width: none; font-size: 48px; }
.hero--split p.lede { margin: 0 0 30px; max-width: 560px; }
.hero--split .cta { justify-content: flex-start; }
.hero--split .copy { padding-bottom: 72px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600;
           letter-spacing: .08em; text-transform: uppercase; color: #C3CDD8;
           margin: 0 0 16px; }
.hero-phones { display: flex; gap: 18px; justify-content: center;
               align-items: flex-end; }
.hero-phones img { width: 46%; max-width: 250px; height: auto;
                   border-radius: 30px 30px 0 0; display: block;
                   box-shadow: 0 -10px 50px rgba(0,0,0,.35); }
.hero-phones > :first-child img, .hero-phones > img:first-child { margin-bottom: -40px; }
.hero-phones > picture:not(:first-child) img { margin-bottom: 0; }
.hero-phones--one img { width: 62%; max-width: 280px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 0;
             padding: 0; list-style: none; color: #C3CDD8; font-size: 14px; }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row li::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
                        background: var(--brand-paper); opacity: .7; }

/* ---- Breadcrumb ---------------------------------------------------------- */
.crumbs { font-size: 13px; color: #C3CDD8; margin: 0 0 18px; padding: 0;
          list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #C3CDD8; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

/* ---- Proof strip under the hero ----------------------------------------- */
.proof { background: #fff; border-bottom: 1px solid var(--brand-border); }
.proof .inner { max-width: 1080px; margin: 0 auto; padding: 26px 28px;
                display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.proof .stat { text-align: center; }
.proof .num { display: block; font-size: 28px; font-weight: 700;
              color: var(--brand-night); line-height: 1.1;
              font-variant-numeric: tabular-nums; }
.proof .lab { display: block; font-size: 13px; color: var(--brand-slate);
              margin-top: 4px; }

/* ---- Audience cards ------------------------------------------------------ */
.who { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.who a { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px;
         background: #fff; border: 1px solid var(--brand-border);
         border-radius: var(--brand-radius); text-decoration: none;
         color: var(--brand-night); transition: box-shadow .18s, transform .18s; }
.who a:hover { box-shadow: 0 10px 28px rgba(18,35,58,.12); transform: translateY(-2px); }
.who a:focus-visible { outline: 3px solid var(--brand-night); outline-offset: 3px; }
.who strong { font-size: 16px; }
.who span { font-size: 14px; color: var(--brand-slate); flex: 1; }
.who em { font-style: normal; font-size: 14px; font-weight: 600; }

/* ---- A band that shows phones beside a list ----------------------------- */
.band { background: #fff; border-top: 1px solid var(--brand-border);
        border-bottom: 1px solid var(--brand-border); }
.band--dark { background: var(--brand-night); color: var(--brand-paper);
              border: 0; }
.band--dark .section h2, .band--dark h3 { color: var(--brand-paper); }
.band--dark .section .lead, .band--dark p { color: #C3CDD8; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.duo--flip > :first-child { order: 2; }
.duo h2 { text-align: left !important; }
.duo .lead { text-align: left !important; margin-left: 0 !important; margin-bottom: 26px !important; }
.phones-row { display: flex; gap: 16px; justify-content: center; }
.phones-row figure { margin: 0; flex: 1; max-width: 240px; }
.phones-row img { width: 100%; height: auto; display: block; border-radius: 28px;
                  box-shadow: 0 14px 40px rgba(18,35,58,.18); }
.phones-row figcaption { font-size: 13px; color: var(--brand-slate); text-align: center;
                         margin-top: 10px; }
.band--dark .phones-row figcaption { color: #C3CDD8; }

/* ---- Check lists --------------------------------------------------------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px;
                     width: 20px; height: 20px; border-radius: 50%;
                     background: var(--brand-night) no-repeat center / 12px
                     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='%23F7F5F0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.band--dark .checks li::before { background-color: var(--brand-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='%2312233A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks strong { display: block; color: inherit; }
.checks span { color: var(--brand-slate); font-size: 14px; }
.band--dark .checks span { color: #C3CDD8; }

/* ---- Feature groups (features page and audience pages) ------------------- */
.fgroup { margin: 0 0 56px; }
.fgroup:last-child { margin-bottom: 0; }
.fgroup > h2 { text-align: left !important; }
.fgroup > .lead { text-align: left !important; margin: 0 0 26px !important; }
.fcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
          gap: 18px; }
.fcard { background: #fff; border: 1px solid var(--brand-border);
         border-radius: var(--brand-radius); padding: 22px 22px 20px;
         display: flex; flex-direction: column; gap: 8px; }
.fcard h3 { margin: 0; font-size: 17px; font-weight: 600; }
.fcard p { margin: 0; font-size: 14px; color: var(--brand-slate); }
.fcard .why { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--brand-border);
              color: var(--brand-night); font-size: 14px; font-weight: 500; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
       margin: 0 0 48px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 9px 16px; border-radius: 999px;
         border: 1px solid var(--brand-border); background: #fff;
         color: var(--brand-night); text-decoration: none; font-size: 14px; }
.toc a:hover { border-color: var(--brand-night); }

/* ---- Pains: three columns of problem, answer ---------------------------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { background: #fff; border: 1px solid var(--brand-border);
        border-radius: var(--brand-radius); padding: 26px; }
.pain h3 { margin: 0 0 8px; font-size: 18px; }
.pain p { margin: 0; color: var(--brand-slate); font-size: 15px; }

/* ---- Sample questionnaire ----------------------------------------------- */
.qsample { max-width: 620px; margin: 0 auto; background: #fff;
           border: 1px solid var(--brand-border); border-radius: var(--brand-radius);
           padding: 8px 24px; }
.qsample li { padding: 14px 0; border-bottom: 1px solid var(--brand-border);
              font-size: 15px; }
.qsample li:last-child { border-bottom: 0; }
.qsample ol { margin: 0; padding-left: 20px; }

/* ---- Comparison: paper vs KnockTurf ------------------------------------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px;
          margin: 0 auto; }
.versus > div { border-radius: var(--brand-radius); padding: 26px; }
.versus .old { background: var(--brand-surface); border: 1px solid var(--brand-border); }
.versus .new { background: #fff; border: 2px solid var(--brand-night);
               box-shadow: 0 10px 30px rgba(18,35,58,.08); }
.versus h3 { margin: 0 0 14px; font-size: 17px; }
.versus ul { margin: 0; padding-left: 18px; }
.versus li { margin: 0 0 8px; font-size: 15px; }
.versus .old li { color: var(--brand-slate); }

/* ---- Steps --------------------------------------------------------------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
          counter-reset: s; }
.steps3 li { list-style: none; background: #fff; border: 1px solid var(--brand-border);
             border-radius: var(--brand-radius); padding: 24px; position: relative; }
.steps3 li::before { counter-increment: s; content: counter(s);
                     display: inline-flex; width: 32px; height: 32px;
                     border-radius: 50%; background: var(--brand-night);
                     color: var(--brand-paper); font-weight: 700;
                     align-items: center; justify-content: center; margin-bottom: 12px; }
.steps3 { padding: 0; margin: 0; }
.steps3 h3 { margin: 0 0 6px; font-size: 17px; }
.steps3 p { margin: 0; color: var(--brand-slate); font-size: 14px; }

/* ---- Closing call to action --------------------------------------------- */
.closing { background: var(--brand-night); color: var(--brand-paper);
           padding: 72px 24px; text-align: center; }
.closing h2 { color: var(--brand-paper); margin: 0 0 12px; font-size: 30px; }
.closing .lead { color: var(--brand-muted); max-width: 560px; margin: 0 auto 28px;
                 text-align: center; }
.closing .section { padding: 0; }
.closing .cta { justify-content: center; }
.closing .cta { margin-top: 4px; }
.closing .fine { color: var(--brand-muted); font-size: 14px; margin: 18px 0 0; }

/* ---- Sticky call to action on phones ------------------------------------ */
.sticky-cta { display: none; }
@media (max-width: 780px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0;
                z-index: 60; gap: 10px; padding: 10px 14px;
                padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
                background: rgba(18,35,58,.97);
                box-shadow: 0 -4px 18px rgba(0,0,0,.2); }
  .sticky-cta .btn { flex: 1; text-align: center; padding: 12px 10px; }
  body.has-sticky footer { padding-bottom: 96px; }
}

/* ---- Footer site map ----------------------------------------------------- */
.foot { max-width: 1080px; margin: 0 auto; display: grid;
        grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; text-align: left; }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
           color: var(--brand-paper); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .brand-col p { margin: 0 0 8px; }
.foot-base { max-width: 1080px; margin: 28px auto 0; padding-top: 18px;
             border-top: 1px solid rgba(195,205,216,.18); text-align: left; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .who { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero--split .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero--split .copy { padding-bottom: 36px; }
  .duo { grid-template-columns: 1fr; gap: 32px; }
  .duo--flip > :first-child { order: 0; }
  .pains, .steps3 { grid-template-columns: 1fr; }
  .proof .inner { grid-template-columns: repeat(2, 1fr); }
  .versus { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  /* One row on a phone: the logo and Sign in. Start a campaign and Pricing
     ride along in the sticky bar at the bottom; every page is in the footer. */
  .nav { flex-wrap: nowrap; }
  .nav a.link:not(.link--keep), .nav .btn--cta { display: none; }
  .hero--split { padding: 40px 20px 0; }
  .hero--split h1 { font-size: 32px; }
  .who { grid-template-columns: 1fr; }
  .phones-row { gap: 10px; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .who a { transition: none; }
}

/* ---- How a canvasser records a door: three phones in a row -------------- */
.door-steps { list-style: none; margin: 0; padding: 0; display: grid;
              grid-template-columns: repeat(3, 1fr); gap: 28px; }
.door-steps li { text-align: center; }
.door-steps img { width: 100%; max-width: 250px; height: auto; display: block;
                  margin: 0 auto 18px; border-radius: 28px;
                  box-shadow: 0 14px 40px rgba(18,35,58,.18); }
.door-steps h3 { margin: 0 0 6px; font-size: 18px; }
.door-steps p { margin: 0 auto; max-width: 300px; color: var(--brand-slate); font-size: 15px; }
.door-steps-more { text-align: center; margin: 34px 0 0; font-size: 15px; }
.door-steps-more a { color: var(--brand-night); font-weight: 600; }
@media (max-width: 900px) {
  .door-steps { grid-template-columns: 1fr; gap: 40px; }
  .door-steps img { max-width: 230px; }
}

/* ---- Story chapters on the features page -------------------------------- */
.chapter { padding: 64px 0; border-top: 1px solid var(--brand-border); }
.chapter:first-of-type { border-top: 0; padding-top: 8px; }
.chapter-label { display: inline-block; font-size: 13px; font-weight: 700;
                 letter-spacing: .06em; text-transform: uppercase;
                 color: var(--brand-slate); margin: 0 0 10px; }
.chapter > h2 { text-align: left !important; margin-bottom: 12px !important; }
.chapter .story { font-size: 18px; line-height: 1.6; color: var(--brand-night);
                  max-width: 760px; margin: 0 0 30px; }
.chapter-shots { display: grid; gap: 22px; margin: 0 0 30px; }
.chapter-shots--desktop-1 { grid-template-columns: minmax(0, 820px); }
.chapter-shots--desktop-2 { grid-template-columns: 1fr 1fr; }
.chapter-shots--phone { grid-template-columns: repeat(auto-fit, minmax(170px, 230px));
                        justify-content: start; }
.chapter-shots figure { margin: 0; }
.chapter-shots .shot { width: 100%; }
.chapter-shots .shot--phone { border: 0; background: none; box-shadow: none;
                              border-radius: 28px; overflow: visible; }
.chapter-shots .shot--phone img { border-radius: 28px;
                                  box-shadow: 0 14px 40px rgba(18,35,58,.18); }
.chapter-shots figcaption { font-size: 13px; color: var(--brand-slate); margin-top: 10px; }

/* ---- Inline call to action ---------------------------------------------- */
.cta-inline { display: flex; align-items: center; justify-content: space-between;
              gap: 20px; flex-wrap: wrap; margin: 8px 0 0; padding: 26px 30px;
              background: var(--brand-night); color: var(--brand-paper);
              border-radius: var(--brand-radius); }
.cta-inline strong { display: block; font-size: 20px; margin-bottom: 4px; }
.cta-inline span { color: #C3CDD8; font-size: 15px; }
.cta-inline-btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .chapter-shots--desktop-2 { grid-template-columns: 1fr; }
  .chapter .story { font-size: 16px; }
  .chapter { padding: 44px 0; }
}

/* <picture> wraps each illustration for its WebP source. Taking it out of the
   layout keeps the <img> the flex or grid item every rule above was written for. */
picture { display: contents; }

/* ---- Analytics consent --------------------------------------------------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
           max-width: 560px; margin: 0 auto; display: flex; gap: 16px;
           align-items: center; flex-wrap: wrap; padding: 16px 18px;
           background: var(--brand-night); color: var(--brand-paper);
           border-radius: var(--brand-radius); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 260px; font-size: 14px; color: #C3CDD8; }
.consent-btns { display: flex; gap: 8px; }
.consent .btn { padding: 10px 18px; border-radius: var(--brand-radius);
                font: 500 15px var(--brand-font); cursor: pointer; }
.consent .btn--light { background: var(--brand-paper); color: var(--brand-night);
                       border: 1px solid var(--brand-paper); }
.consent .btn--outline { background: transparent; color: var(--brand-paper);
                         border: 1px solid rgba(247,245,240,.4); }
@media (max-width: 780px) {
  .consent { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
