

/* ==========================================================================
   Analytics page rebuild (2026-10-30), ay- classes (site.css already uses an- for blog annotations). Plain HTML sections (not Squarespace grids).
   Every tool screen is our own HTML build of the real interface for Harbor & Palm Remodeling, rendered to
   /assets/img/analytics-v2/ (sources: punchlist-memory/tools/analytics-v2/kit.html). Values are blurred so
   no metric can be read (Sam, 2026-10-30), so nothing needs an "example" label.
   ========================================================================== */
.ay-wrap { width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 var(--sqs-site-gutter, 4vw); }
.ay-sec { padding: clamp(56px, 7vw, 120px) 0; }
.ay-ph { display: none; }
.ay-sec h3 { margin: 0; }
.ay-sec p a, .ay-faq p a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.ay-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4vw; align-items: start; margin-bottom: clamp(32px, 4vw, 64px); }
.ay-head p + p { margin-top: .8em; }
.ay-swipe { list-style: none; margin: 0; padding: 0; }
.ay-shot { display: block; width: 100%; height: auto; box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 20px 50px rgba(0,0,0,.18); border-radius: 8px; }

/* 01 Hero: black, copy left; GA4 over an orange block with Search Console, Google Ads and Clarity around it */
.ay-hero { background: #000; color: #fff; }
.ay-hero-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4vw; align-items: center; padding-top: 32px; padding-bottom: 48px; }
.ay-hero-copy p { margin-top: 1em; max-width: 32em; } .ay-hero-copy h1 + p { margin-top: 1.1em; }
.ay-hero-btn { margin-top: 2em; background: #FF5E1A; color: #fff; border-radius: 300px; padding: 18px 32px; font: 500 16px/1.2 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: .64px; }
.ay-hero-art { position: relative; width: 100%; aspect-ratio: 1.2 / 1; max-height: calc(100svh - var(--header-h, 98px) - 120px); container-type: inline-size; justify-self: end; }
.ay-block { position: absolute; left: 10%; bottom: 0; width: 70%; height: 60%; background: #FF5E1A; }
.ay-h-ga { position: absolute; right: 0; top: 6%; width: 88%; }
.ay-h-cl { position: absolute; left: 0; top: 27%; width: 24%; z-index: 2; }
.ay-h-sc { position: absolute; left: 0; bottom: 2%; width: 52%; z-index: 2; }
.ay-h-ads { position: absolute; right: 2%; bottom: 8%; width: 46%; z-index: 3; }

/* 02 Benefits strip: four short columns with dividers, orange titles (kept from the old page) */
.ay-strip { background: #fff; color: #000; padding: 44px 0 clamp(40px, 5vw, 72px); }
.ay-strip-in { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ay-strip-in li { text-align: center; padding: 6px 2vw; } .ay-strip-in li + li { border-left: 1px solid #000; }
.ay-strip-in h2 { color: #FF5E1A; line-height: 1.1; } .ay-strip-in p { margin-top: 8px; }

/* 03 What we measure: six square interface tiles, titles on one line */
.ay-measure { background: #F1F0EE; color: #000; }
.ay-six { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.ay-six img, .ay-more-grid img, .ay-path img:not(.ay-note) { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
.ay-six h3, .ay-more-grid h3, .ay-path h3 { margin-top: 18px; line-height: 1.1; white-space: nowrap; }
.ay-six p, .ay-more-grid p, .ay-path p { margin-top: 8px; max-width: 30em; }

/* 04 From a visit to a real opportunity: five tiles; the last one sits past a dashed line (the business's part) */
.ay-journey { background: #000; color: #fff; }
.ay-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1px minmax(0, 1fr); gap: clamp(12px, 1.4vw, 24px); position: relative; align-items: start; }
.ay-path h3 { font-size: clamp(17px, 1.35vw, 22px) !important; }
.ay-path p { font-size: 15px; color: #ccc; }
.ay-path-cut { align-self: stretch; border-left: 2px dashed #FF5E1A; margin-top: -24px; }
.ay-path-last { position: relative; }
.ay-note { position: absolute; width: 118%; right: -4%; top: -64px; height: auto; transform: rotate(-3deg); pointer-events: none; }
.ay-journey .ay-close { margin-top: clamp(36px, 4vw, 64px); max-width: 40em; color: #ccc; }

/* 05 The tools: a picker like the SEO services picker (Sam, round 1: "this section needs serious help"; picked
   option B on the rework board). Names in a list on the left, one large readable screen on the right over the
   orange block; hover or tap to switch (main.js [data-tabs]). Phones: accordion. */
.ay-tools-sec { background: #fff; color: #000; }
.ay-tools { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: repeat(8, auto) 1fr; column-gap: 5vw; align-items: start; }
.ay-tool-h { grid-column: 1; margin: 0 !important; line-height: 1.1; }
.ay-tool-h button { display: flex; align-items: center; width: 100%; margin: 0; padding: .5em 0; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .14); background: none; cursor: default; text-align: left; color: rgba(0, 0, 0, .3);
  scroll-margin-top: calc(var(--hdr-now, 0px) + 12px); font: 500 min(calc(1.2 * var(--u, 1vw) + 1rem), calc(1.2vw + 1rem))/1.1 'Epilogue', sans-serif; letter-spacing: -.045em; transition: color .2s; }
.ay-tool-h:first-of-type button { border-top: 1px solid rgba(0, 0, 0, .14); }
.ay-tool-h button::before { content: ""; flex: none; width: 0; height: .3em; margin-right: 0; background: #FF5E1A; transition: width .25s ease, margin-right .25s ease; }
.ay-tool-h button:hover, .ay-tool-h button:focus-visible { color: #000; outline: none; }
.ay-tool-h button[aria-expanded="true"] { color: #000; }
.ay-tool-h button[aria-expanded="true"]::before, .ay-tool-h button:focus-visible::before { width: .3em; margin-right: .4em; }
.ay-tool-panel { grid-column: 2; grid-row: 1 / -1; display: grid; gap: 1.2rem; align-content: start; }
.ay-tool-panel[hidden] { display: none; }
.ay-tools.is-tabs .ay-tool-panel { animation: ay-in .4s ease; }
@keyframes ay-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ay-tool-panel p { max-width: 38em; } .ay-tool-panel p b { font-weight: 500; }
.ay-tool-art { position: relative; display: grid; place-items: center; aspect-ratio: 7 / 5; padding: 7% 7%; background: #F1F0EE; overflow: hidden; }
.ay-tool-art::before { content: ""; position: absolute; left: 0; top: 0; width: 42%; height: 58%; background: #FF5E1A; }
.ay-tool-art > * { position: relative; }
.ay-scr { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 20px 50px rgba(0,0,0,.18); border-radius: 8px; }
.ay-tphone { height: 100%; aspect-ratio: 420 / 860; border: 7px solid #111; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.ay-tphone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.ay-tools-sec .ay-cta { margin-top: clamp(40px, 4vw, 64px); }
.ay-btn { display: inline-block; background: #FF5E1A; color: #fff; border-radius: 300px; padding: 18px 32px; font: 500 16px/1.2 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: .64px; }

/* 06 Four numbers: a monthly review sheet taped over an orange block (live HTML, values blurred) */
.ay-score { background: #DAD9D9; color: #000; }
.ay-review { position: relative; padding: clamp(28px, 3vw, 48px) 0 0; }
.ay-review::before { content: ''; position: absolute; left: 8%; right: -8%; top: 0; bottom: 18%; background: #FF5E1A; margin-right: calc(-1 * var(--sqs-site-gutter, 4vw)); }
.ay-sheet { position: relative; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 30px 60px rgba(0,0,0,.2); padding: clamp(24px, 3vw, 48px); transform: rotate(-.6deg); max-width: 1180px; }
.ay-sheet::before, .ay-sheet::after { content: ''; position: absolute; top: -14px; width: 120px; height: 30px; background: rgba(244, 238, 226, .85); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.ay-sheet::before { left: 8%; transform: rotate(-4deg); } .ay-sheet::after { right: 8%; transform: rotate(5deg); }
.ay-sheet-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 2px solid #000; padding-bottom: 14px; }
.ay-sheet-top b { font-weight: 500; letter-spacing: -.02em; font-size: clamp(18px, 1.6vw, 24px); } .ay-sheet-top span { color: #666; font-size: 15px; }
.ay-four { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ay-four li { padding: 22px 2vw 24px 0; } .ay-four li + li { border-left: 1px solid #ddd; padding-left: 2vw; }
.ay-four h3 { line-height: 1.1; }
.ay-four .ay-val { display: block; font-size: clamp(34px, 3.4vw, 54px); letter-spacing: -.04em; font-weight: 500; line-height: 1.1; margin: 14px 0 10px; }
.ay-four p { font-size: 15px; color: #444; max-width: 18em; }
.ay-srcs { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; font-size: 13px; color: #444; margin: 16px 0 12px; }
.ay-srcs i { height: 9px; background: #000; display: block; } .ay-srcs b { font-weight: 500; color: #000; font-size: 14px; } .ay-srcs i.o { background: #FF5E1A; } .ay-srcs i.g { background: #999; }
.ay-next { display: grid; grid-template-columns: auto 1fr; gap: 3vw; align-items: baseline; border-top: 2px solid #000; padding-top: 20px; }
.ay-next b { font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.02em; white-space: nowrap; }
.ay-next p { font-size: clamp(18px, 1.5vw, 24px); line-height: 1.35; letter-spacing: -.02em; }

/* 07 FAQ on a darkened photo (kept from the old page) */
.ay-faq { color: #fff; padding: clamp(64px, 8vw, 130px) 0; }
.ay-faq-in { position: relative; z-index: 1; max-width: 1000px; } .ay-faq h2 { margin-bottom: clamp(28px, 3vw, 52px); }
.ay-faq .acc summary, .ay-faq .acc-desc, .ay-faq .acc-desc p { color: #fff; } .ay-faq .acc-desc p { max-width: 46em; padding-bottom: 26px; }

/* 08 Connected services: three square tiles, lowercase orange titles */
.ay-more h2 { margin-bottom: clamp(28px, 3vw, 52px); }
.ay-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); } .ay-more-grid h3 { color: #FF5E1A; }

/* 09 Contact: black, copy left with the faint Punchlist logo, form right (no photo) */
.ay-contact { background: #000; color: #fff; }
.ay-contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 6vw; align-items: start; }
.ay-contact-copy p { margin-top: 1em; }
.ay-contact-logo { display: block; width: 78%; max-width: 520px; height: auto; margin-top: clamp(80px, 10vw, 180px); opacity: .14; }

@media (max-width: 1199px) and (min-width: 768px) {
  .ay-path p { font-size: 14px; } .ay-note { top: -52px; }
  .ay-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ay-four li:nth-child(3) { border-left: 0; padding-left: 0; }
  .ay-four li:nth-child(n+3) { border-top: 1px solid #ddd; }
}
@media (max-width: 1023px) {
  .ay-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ay-hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ay-hero-art { max-height: none; }
  .ay-contact-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ay-strip-in h2 { font-size: 20px; }
  .ay-six h3 { white-space: normal; }
}

/* Phones: short copy, swipe rows with the site's swipe marks */
@media (max-width: 767px) {
  .ay-dk { display: none; } .ay-ph { display: block; }
  .ay-hero-in { padding-top: 20px; padding-bottom: 44px; gap: 30px; }
  .ay-hero-art { aspect-ratio: 1 / .92; }
  .ay-h-cl, .ay-h-ads { display: none; }
  .ay-h-ga { width: 96%; top: 0; } .ay-h-sc { width: 62%; left: 0; bottom: 0; } .ay-block { left: 10%; width: 70%; height: 66%; }
  .ay-hero-btn { margin-top: 1.4em; padding: 16px 26px; }
  .ay-strip-in { grid-template-columns: 1fr 1fr; row-gap: 24px; } .ay-strip-in li:nth-child(3) { border-left: 0; }
  .ay-swipe { display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--sqs-site-gutter, 6vw)); padding: 0 var(--sqs-site-gutter, 6vw); scroll-padding: 0 var(--sqs-site-gutter, 6vw); }
  .ay-swipe::-webkit-scrollbar { display: none; }
  .ay-swipe > li { flex: 0 0 80%; scroll-snap-align: start; }
  .ay-sec .swipe-dots { display: flex; }
  .ay-sec:not(.ay-journey) .swipe-dots i:not(.on) { background: rgba(0, 0, 0, .22); }
  .ay-six h3, .ay-more-grid h3, .ay-path h3 { white-space: normal; }
  .ay-path-cut { display: none; }
  .ay-note { width: 92%; right: 0; top: -30px; }
  .ay-journey .ay-close { margin-top: 28px; }
  /* tools: accordion, tap a name to open its screen in place */
  .ay-tools { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .ay-tool-h, .ay-tool-panel { grid-column: 1; grid-row: auto; }
  .ay-tool-h button { color: #000; font-size: 22px; padding: 16px 0; cursor: pointer; }
  .ay-tool-h button::before, .ay-tool-h button[aria-expanded="true"]::before { display: none; }
  .ay-tool-h button::after { content: "+"; margin-left: auto; color: #FF5E1A; font-size: 28px; line-height: .8; font-weight: 400; }
  .ay-tool-h button[aria-expanded="true"]::after { content: "\2013"; }
  .ay-tool-panel { padding: 6px 0 26px; }
  .ay-tool-art { aspect-ratio: 1 / .9; padding: 9% 6%; }
  .ay-review::before { left: 16%; bottom: 40%; }
  .ay-sheet { transform: none; padding: 22px 18px; }
  .ay-sheet-top { flex-direction: column; gap: 2px; }
  .ay-four { grid-template-columns: 1fr 1fr; } .ay-four li { padding: 16px 12px 16px 0; } .ay-four li + li { padding-left: 12px; }
  .ay-four li:nth-child(3) { border-left: 0; padding-left: 0; } .ay-four li:nth-child(n+3) { border-top: 1px solid #ddd; }
  .ay-four p { display: none; } .ay-srcs { display: none; }
  .ay-four .ay-val { margin: 10px 0 0; }
  .ay-next { grid-template-columns: 1fr; gap: 6px; }
  .ay-contact-logo { display: none; }
}

/* review fixes: captions in each collage row line up (bottom-aligned), button text stays white */
.ay-btn, .ay-btn:hover { color: #fff !important; text-decoration: none !important; }
/* the orange blocks run to the page edge; clip them so the page never scrolls sideways */
main > section { overflow-x: clip; }
@media (max-width: 767px) { .ay-srcs { display: grid; margin-bottom: 0; } }
