/* Jared + Jarrod rebrand of the discovery deck. Loaded last, overrides the jarrodbrake.com styles.
   Palette from the J+J brand guide: Midnight Sapphire #153247, Shadow Slate #272727,
   Arctic Whisper #E7EAEC, Bronze Ember #462915 (the guide's label says #d3b973, the swatch is #462915).
   Logo font Lazord Mono is not a web font: IBM Plex Mono stands in. Headings: Hanken Grotesk, light. */
:root {
  --paper: #f5f6f7; --card: #ffffff; --ink: #272727; --navy: #153247; --navy2: #1e4260; --ink2: #272727;
  --mute: #5f6770; --line: #dfe3e6; --line2: #c9cfd4;
  --accent: #462915; --accent-soft: #efe7df;
  --display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
.slide.ink { --accent: #e7eaec; border-color: #0f2535; }

/* headings: lighter, like the guide */
h1, h2 { font-weight: 400; letter-spacing: -.03em; }
h1 em, h2 em { font-weight: 500; }
.lbl, .hud, .num { letter-spacing: .16em; }

/* grid-paper panels on the light slides, as in the guide */
.slide:not(.ink) {
  --tone: var(--paper); --grid: rgba(21, 50, 71, .045);
  background-color: var(--tone);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
.slide.xray { background-color: var(--paper); }

/* Tonal rhythm: three quiet grounds from the palette so every section reads as a new room.
   mist = Arctic Whisper (cool, chapter openers), stone = Bronze Ember tint (warm), paper = base.
   Cards stay white, so contrast holds on all three. Navy .ink slabs remain the big punctuation. */
.slide.t-mist, .slide:is([data-label="The menu"], [data-label="Everything"], [data-label="By industry"], [data-label="How it works"],
  [data-label="Client experience"], [data-label="AI agents and chatbots"], [data-label="Strategy and planning"], [data-label="Content and creative"]) {
  --tone: #e8ecef; --grid: rgba(21, 50, 71, .055);
}
.slide.t-stone, .slide:is([data-label="Why not build it yourself"], [data-label="Where to start"],
  [data-label="Sales and CRM"], [data-label="Operations and workflow"], [data-label="Websites, apps and software"], [data-label="AI implementation and training"]) {
  --tone: #f2ece5; --grid: rgba(70, 41, 21, .05);
}
/* a bronze hairline where each tone begins, like a chapter tab */
.slide:is(.t-mist, .t-stone, [data-label="The menu"], [data-label="Everything"], [data-label="By industry"], [data-label="How it works"], [data-label="Client experience"], [data-label="AI agents and chatbots"], [data-label="Strategy and planning"], [data-label="Content and creative"], [data-label="Why not build it yourself"], [data-label="Where to start"], [data-label="Sales and CRM"], [data-label="Operations and workflow"], [data-label="Websites, apps and software"], [data-label="AI implementation and training"]) {
  box-shadow: inset 0 1px 0 rgba(70, 41, 21, .12);
}

/* the quote mark sits top right of every slide, the arrow bottom right */
.slide::before {
  content: ""; position: absolute; top: 66px; right: var(--pad); width: 30px; height: 26px;
  background: url("jj-mark.png") center / contain no-repeat; opacity: .9; pointer-events: none;
}
.slide.ink::before { background-image: url("jj-mark-white.png"); }
.slide::after {
  content: "\2192"; position: absolute; right: var(--pad); bottom: calc(var(--pad) + 8px);
  font-family: var(--mono); font-size: 22px; color: var(--navy); opacity: .7; pointer-events: none;
}
.slide.ink::after { color: #fff; }
.slide:last-child::after { content: none; }

/* header: J+J horizontal lockup */
.mark { background: none; width: auto; height: 34px; }
.mark::after { content: none; }
.mark img { height: 30px; width: auto; display: block; }
.mark .m-light { display: none; }
body.dark .mark { background: none; }
body.dark .mark .m-dark { display: none; }
body.dark .mark .m-light { display: block; }
.brand-name { font-family: var(--mono); font-weight: 400; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; }
.brand-name sup { font-size: .7em; margin: 0 .1em; }

/* buttons: sapphire with a bronze edge */
.btn-x { background: var(--navy); box-shadow: inset 0 -3px 0 #462915; font-weight: 500; }
.btn-x:hover { background: #0f2535; }
.btn-x.light { background: #fff; color: var(--navy); box-shadow: inset 0 -3px 0 #462915; }
.progress { background: var(--navy); }
body.dark .progress { background: #e7eaec; }
.berg-line span { background: var(--tone, var(--paper)); }
/* iceberg: numbers readable on navy, closing strip under the waterline grid */
.berg-low .num { color: #c9a27e; }
.berg-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; align-items: baseline; padding: 18px 24px; background: var(--card); border-top: 3px solid #462915; }
.berg-foot b { font-size: clamp(17px, 1.4vw, 21px); font-weight: 600; letter-spacing: -.01em; color: var(--navy); white-space: nowrap; }
.berg-foot span { color: var(--mute); font-size: 15px; line-height: 1.5; }
@media (max-width: 760px) { .berg-foot { grid-template-columns: 1fr; } .berg-foot b { white-space: normal; } }

/* report header mark (quote icon on sapphire) */
.rp-bar .mark.jj { background: var(--navy); width: 38px; height: 38px; display: grid; place-items: center; }
.rp-bar .mark.jj img { height: 20px; }

/* on sapphire slides the main button flips to white */
.ink .btn-x { background: #fff; color: var(--navy); box-shadow: inset 0 -3px 0 #462915; }
.ink .btn-x:hover { background: #e7eaec; }
/* the cover already says "press →" in its footer, so no second arrow there */
.slide:first-child::after, .slide:first-child::before { content: none; }

/* report: the jarrodbrake mint highlights become Arctic Whisper on sapphire.
   Green / amber / red on the health meters stay: they mean good / okay / needs work. */
.rp-big > div:first-child b, .rp-price > div:first-child .lbl { color: #e7eaec; }
.rp h2, .rp-overall b { font-weight: 500; }

/* tall slides (the health check on a laptop screen) scroll under the fixed header and footer bar:
   give both a solid backing in the current slide's colour so text slides under instead of overlapping */
.brand, .hud { background: #f5f6f7; transition: background .3s, color .3s; } /* solid, no blur: blur over scrolling content made scrolling stutter */
.brand { border-bottom: 1px solid rgba(21, 50, 71, .08); }
body.dark .brand, body.dark .hud { background: #153247; }
body.dark .brand { border-bottom-color: rgba(231, 234, 236, .08); }

/* Jared's note: hover states slow and considered, with a zoom in / out.
   Long ease-out curve both ways, a small scale (not bouncy), soft lift, colour eases with it.
   Mouse only (no sticky zoom on phones); off for people who ask for reduced motion. */
:root { --ease-calm: cubic-bezier(.22, 1, .36, 1); --t-calm: .65s; }
@media (hover: hover) and (pointer: fine) {
  /* prefixed with .slide.in so these win over the reveal-on-scroll rules (.slide.in .rv) */
  .slide.in .item, .slide.in .index button, .slide.in .tabs button, .slide.in .pack button, .slide.in .wall button, .slide.in .proof > div, .slide.in .cols3 > div, .slide.in .steps > div,
  .slide.in .qs li, .slide.in .berg-low > div, .slide.in .versus > div, .dq-opt, .btn-x {
    position: relative; transform-origin: center;
    transition: opacity .35s, transform var(--t-calm) var(--ease-calm), box-shadow var(--t-calm) var(--ease-calm),
      background-color .5s ease, color .5s ease, border-color .5s ease;
  }
  .slide.in .item:hover, .slide.in .pack button:hover, .slide.in .proof > div:hover, .slide.in .cols3 > div:hover, .slide.in .steps > div:hover,
  .slide.in .berg-low > div:hover, .slide.in .versus > div:hover {
    transform: scale(1.035); z-index: 2; box-shadow: 0 18px 40px -18px rgba(21, 50, 71, .35);
  }
  .slide.in .index button:hover, .slide.in .qs li:hover { transform: scale(1.02); z-index: 2; }
  .slide.in .tabs button:hover, .slide.in .wall button:hover { transform: scale(1.06); z-index: 2; }
  .dq-opt:hover { transform: scale(1.025); z-index: 2; box-shadow: 0 10px 26px -14px rgba(21, 50, 71, .35); }
  .btn-x:hover, .btn-x.light:hover, .ink .btn-x:hover { transform: scale(1.04); box-shadow: inset 0 -3px 0 #462915, 0 16px 34px -16px rgba(0, 0, 0, .45); }
  .slide.in .item:active, .slide.in .pack button:active, .slide.in .tabs button:active, .slide.in .wall button:active, .dq-opt:active, .btn-x:active { transform: scale(.985); transition-duration: .18s; }
  .item .go { transition: all .5s var(--ease-calm); }
  .ink .proof > div:hover { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
}
@media (prefers-reduced-motion: reduce) {
  .item, .index button, .tabs button, .pack button, .wall button, .proof > div, .cols3 > div, .steps > div,
  .qs li, .berg-low > div, .dq-opt, .btn-x, .versus > div { transition: none !important; transform: none !important; }
}

/* smoother scrolling: 'mandatory' snap made wheel/trackpad scrolling lurch and fought the tall
   health-check slide. Proximity only settles onto a slide when you stop near its top. */
.deck { scroll-snap-type: none; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; } /* no snapping at all: the page follows the wheel/trackpad; arrow keys still glide slide to slide */
.slide { scroll-snap-stop: normal; }
@media (max-width: 700px), (max-height: 640px) { .deck { scroll-snap-type: none; } } /* same as the original: small or short screens scroll freely */
/* slide content fades in gently (a small drift, not a jump), so nothing looks like it snaps into place.
   Kept at .slide .rv specificity so the hover rules (.slide.in .item etc.) still win on the cards. */
.slide .rv { transform: translateY(8px); transition: opacity .8s ease, transform 1s var(--ease-calm); }

/* native page scrolling: the deck used to be a 100vh box with its own scrollbar (overflow:auto), which
   loses the browser's natural trackpad momentum and felt mechanical. Now the whole page scrolls. */
html, body { height: auto; }
body { overflow-x: hidden; overflow-y: auto; }
body.rp-open { overflow: hidden; }
.deck { height: auto; overflow: visible; scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { .slide .rv, .slide.in .rv { transition: none; transform: none; } }

/* quiz question 1 now collects email (required) + phone: validation message */
.dq-err { color: #b3261e; min-height: 1.2em; margin-top: 10px; letter-spacing: .08em; }
.dq-err:empty { display: none; }

/* "Start here, press to listen": Jared's voice intro (voice.js).
   Solid Bronze Ember with a cream play button, so it's the first thing the eye lands on */
.jv-start { align-self: flex-start; display: inline-flex; align-items: center; gap: 18px; margin: 26px 0 -6px; padding: 12px 26px 12px 12px; background: #462915; border: 1px solid #8a5c3a; box-shadow: 0 16px 36px -14px rgba(70, 41, 21, .9), inset 0 1px 0 rgba(239, 231, 223, .12); color: #fff; cursor: pointer;
  transition: transform var(--t-calm) var(--ease-calm), background .5s ease, border-color .5s ease; }
.jv-start:hover { transform: scale(1.03); background: #55331b; border-color: #a8774f; }
.jv-start b { display: block; font-family: var(--mono); font-weight: 500; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.jv-start small { display: block; margin-top: 4px; color: #d9c3ad; font-size: 10.5px; }
.jv-play { width: 46px; height: 46px; border-radius: 50%; background: #efe7df; position: relative; flex: none; }
.jv-play::before { content: ""; position: absolute; left: 18px; top: 14px; border-left: 14px solid #462915; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.jv-start .jv-play { width: 50px; height: 50px; }
.jv-start .jv-play::before { left: 20px; top: 16px; }
.jv-start.on .jv-play::before, .jv-bar.on .jv-play::before { left: 15px; top: 15px; width: 5px; height: 16px; border: 0; background: #462915; box-shadow: 10px 0 0 #462915; }
.jv-start.on .jv-play::before { left: 17px; top: 17px; }
.jv-start:not(.on) .jv-play { animation: jv-call 2.8s ease-in-out infinite; }
.jv-start.on .jv-play { animation: jv-pulse 2.4s ease-in-out infinite; }
@keyframes jv-call { 0%, 60%, 100% { box-shadow: 0 0 0 0 rgba(239, 231, 223, .45); } 30% { box-shadow: 0 0 0 11px rgba(239, 231, 223, 0); } }
@keyframes jv-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 231, 223, .35); } 50% { box-shadow: 0 0 0 10px rgba(239, 231, 223, 0); } }
.jv-bar { position: fixed; left: var(--pad); bottom: 56px; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 14px; background: var(--navy); color: #fff; box-shadow: inset 4px 0 0 #462915, 0 18px 40px -18px rgba(0, 0, 0, .55); max-width: min(420px, calc(100vw - 2 * var(--pad))); }
.jv-bar[hidden] { display: none; }
.jv-bar .jv-play { width: 36px; height: 36px; }
.jv-bar .jv-play::before { left: 14px; top: 10px; border-left-width: 11px; border-top-width: 8px; border-bottom-width: 8px; }
.jv-bar.on .jv-play::before { left: 11px; top: 10px; height: 16px; }
.jv-meta { flex: 1; min-width: 0; }
.jv-meta b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jv-prog { height: 3px; background: rgba(231, 234, 236, .2); margin-top: 7px; }
.jv-prog i { display: block; height: 100%; width: 0; background: #c9a27e; transition: width .25s linear; }
.jv-stop { color: #aab4c5; font-size: 10px; }
.jv-stop:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .jv-start .jv-play { animation: none !important; } }
