/* Shared pieces used by every draft. Draft-specific layout lives in each draft's own <style>. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }   /* overscroll past the footer (and above the header) shows dark, not white */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.measure { max-width: 700px; }
h1, h2, h3 { font-family: var(--display); font-stretch: var(--stretch); font-weight: 700; margin: 0; line-height: 1.12; letter-spacing: 0; text-wrap: pretty; }
h1 { font-size: clamp(34px, 5.2vw, 62px); max-width: 30ch; }
h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 40ch; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 1em; }
p, li, strong, figcaption, blockquote, summary { text-wrap: pretty; }
h2 + p { margin-top: 18px; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { text-decoration-thickness: 2px; }
section { padding: var(--space-section) 0; }
.lede { font-size: var(--fs-lede); color: var(--muted); max-width: 680px; margin-top: 20px; }
@media (max-width: 720px) { body { font-size: 17px; } section { padding: var(--space-section-phone) 0; } .lede { font-size: 18px; } }

/* section bands */
.band-deep { background: var(--deep); color: var(--on-dark); }
.band-teal { background: var(--teal); color: var(--on-dark); }
.band-sage { background: var(--sage); }
.band-pale { background: var(--pale); }
.band-deep .lede, .band-teal .lede, .band-deep p, .band-teal p { color: var(--on-dark-soft); }
.band-sage .lede, .band-pale .lede { color: var(--on-tint); }
.band-deep a, .band-teal a { color: var(--white); }

/* draft strip (comes off in the real build) */
.draft-strip { background: var(--ink); color: var(--on-dark-soft); font-size: 13px; text-align: center; padding: 8px 16px; }
.draft-strip b { color: var(--white); }
.draft-strip a { color: var(--white); }
.clean .draft-strip { display: none; }
.note { font-size: 13px; line-height: 1.45; color: #5A4718; background: #FFF6DE; border: 1px dashed #C9A24B; padding: 8px 12px; margin: 18px 0 0; max-width: 700px; }
.note b { color: #3D300F; }
.band-deep p.note, .band-teal p.note, .band-sage p.note, .band-pale p.note { color: #5A4718; }

/* buttons: square, solid */
.btn { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; padding: 16px 26px; border-radius: var(--r); border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn.btn-malt, .band-deep a.btn-malt, .band-teal a.btn-malt { background: var(--malt); color: var(--ink); }
.btn.btn-malt:hover, .band-deep a.btn-malt:hover, .band-teal a.btn-malt:hover, header.site nav a.btn-malt:hover { background: var(--malt-hover); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-line { border-color: currentColor; color: inherit; }
.btn-line:hover { background: rgba(14,51,65,.08); }
.band-deep .btn-line:hover, .band-teal .btn-line:hover { background: rgba(255,255,255,.12); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.arrow { display: inline-block; font-weight: 700; text-decoration: none; padding: 13px 0 6px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 2px no-repeat; }
.arrow:hover { color: var(--teal-hover); }
.band-deep .arrow:hover, .band-teal .arrow:hover { color: var(--sage-logo); }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
.band-deep :focus-visible, .band-teal :focus-visible, header.site :focus-visible, footer :focus-visible { outline-color: var(--white); }

/* header */
header.site { background: var(--deep); color: var(--on-dark); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.1); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--white); color: var(--ink); padding: 12px 16px; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.logo { display: block; line-height: 0; padding: 9px 0; }
.logo img { height: 30px; width: auto; }
.logo .mark-only { display: none; }
header.site nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
header.site nav a { color: var(--on-dark-soft); text-decoration: none; }
header.site nav a { padding: 11px 0; }
header.site nav a:hover { color: var(--white); }
header.site nav .btn { padding: 12px 16px; font-size: 15px; color: var(--ink); white-space: nowrap; }
.subnav { display: none; }
@media (max-width: 700px) {
  header.site nav a:not(.btn) { display: none; }
  .subnav { display: flex; gap: 0; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.1); }
  .subnav a { flex: 1 1 0; text-align: center; color: var(--white); text-decoration: none; font-size: 15px; font-weight: 600; padding: 12px 8px; min-height: 44px; }
  .subnav a + a { border-left: 1px solid rgba(255,255,255,.14); }
  .subnav a[aria-current="page"] { background: var(--deep); }
}
.page-contact header.site nav .btn { display: none; }
.page-legal header.site nav a.btn-malt { background: transparent; border-color: var(--white); color: var(--white); }
.page-legal header.site nav a.btn-malt:hover { background: rgba(255,255,255,.12); color: var(--white); }
@media (max-width: 560px) { .logo .full { display: none; } .logo .mark-only { display: block; height: 26px; } header.site .wrap { height: 60px; } header.site nav .btn { padding: 12px 14px; } }

/* top of the page */
.hero { padding: 84px 0 0; overflow: hidden; border-bottom: 8px solid; border-image: var(--logo-gradient) 1; }
.hero .lede { max-width: 720px; }
.hero { position: relative; }
.hero > .wrap { position: relative; z-index: 1; }
.hero .wave { position: absolute; right: max(0px, calc(50% - 600px)); bottom: -6px; width: min(600px, 46vw); height: auto; opacity: .1; pointer-events: none; user-select: none; }
@media (max-width: 720px) { .hero .wave { display: none; } }
.trust { display: flex; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.16); margin-top: 64px; }
.trust div { flex: 1 1 220px; padding: 22px 24px 26px 0; font-size: 15px; color: var(--on-dark-soft); }
.trust strong { display: block; font-family: var(--display); font-stretch: var(--stretch); font-weight: 600; font-size: 22px; color: var(--white); }
.hero h1, .hero .lede, .hero .cta-row { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .lede { animation-delay: .08s; } .hero .cta-row { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero h1, .hero .lede, .hero .cta-row { animation: none; } }
@media (max-width: 720px) { .hero { padding-top: 52px; } .trust { margin-top: 44px; } .trust div { flex-basis: 100%; padding: 14px 0; } .trust div + div { border-top: 1px solid rgba(255,255,255,.1); } }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.q { margin: 0; position: relative; padding: 22px 26px 22px 64px; background: var(--white); border: 2px solid var(--deep); border-radius: var(--r-quote); }
.q figcaption { color: var(--muted); }
.band-deep .q, .band-teal .q { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.6); }
.q blockquote { margin: 0; font-size: 22px; line-height: 1.45; font-weight: 600; }
.q blockquote::before { content: "\201C"; position: absolute; left: 20px; top: 20px; font-family: var(--display); font-stretch: var(--stretch); font-size: 60px; line-height: .8; color: var(--sea); }
.q figcaption { margin-top: 8px; font-size: 15px; line-height: 1.4; }
.band-deep .q figcaption, .band-teal .q figcaption { color: var(--on-dark-soft); }
.band-sage .q figcaption, .band-pale .q figcaption { color: var(--muted); }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; } .q { padding: 16px 16px 16px 46px; } .q blockquote { font-size: 18px; line-height: 1.4; } .q blockquote::before { left: 13px; top: 15px; font-size: 44px; } .q figcaption { margin-top: 6px; font-size: 14px; } }

/* shared pain points */
.pain-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.pain-list li { padding: 20px 0; border-top: 2px solid var(--ink); }
.pain-list strong { display: block; font-family: var(--display); font-stretch: var(--stretch); font-weight: 600; font-size: var(--fs-title); line-height: 1.25; margin-bottom: 6px; }
.pain-list span { color: var(--on-tint); }
@media (max-width: 820px) { .pain-list { grid-template-columns: 1fr; } }

/* how I work: three steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 52px; border-top: 1px solid rgba(255,255,255,.4); }
.steps > div { padding: 28px 28px 8px 0; }
.steps > div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.4); }
.steps h3 { color: var(--white); font-size: 24px; margin-bottom: 12px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.4); } }

/* where teams end up: before and after */
.shift { width: 100%; border-collapse: collapse; margin-top: 44px; font-size: 17px; }
.shift th { text-align: left; font-family: var(--display); font-stretch: var(--stretch); font-weight: 600; font-size: 20px; padding: 0 20px 14px 0; border-bottom: 2px solid var(--ink); }
.shift td { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.shift td:first-child { font-weight: 700; width: 18%; }
.shift td:nth-child(2) { color: var(--muted); }
.shift td:nth-child(3) { font-weight: 600; }
.shift th:nth-child(3), .shift td:nth-child(3) { background: var(--sage); padding-left: 20px; }
.shift th { padding-top: 14px; }
@media (max-width: 720px) {
  .shift thead { display: none; }
  .shift tr { display: block; border-bottom: 2px solid var(--ink); padding: 14px 0; }
  .shift td { display: block; border: 0; padding: 4px 0; width: auto !important; }
  .shift td:first-child { font-family: var(--display); font-stretch: var(--stretch); font-size: 20px; }
  .shift td:nth-child(2)::before { content: "Where a lot of teams start: "; font-weight: 700; color: var(--ink); }
  .shift td:nth-child(3) { padding: 10px 12px; margin-top: 8px; }
  .shift td:nth-child(3)::before { content: "Where they're headed: "; font-weight: 700; }
}
.case { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; border: 2px solid var(--ink); border-left: 10px solid var(--malt); padding: 32px 34px; background: var(--white); color: var(--ink); }
.case h3 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.case p { margin: 0; color: var(--muted); max-width: 660px; }
@media (max-width: 720px) { .case { grid-template-columns: 1fr; padding: 24px; margin-top: 48px; } }

/* examples: light band, hairline frames */
.carousel { position: relative; margin-top: 44px; }
.track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(860px, 88%); scroll-snap-align: start; margin: 0; }
.slide .frame { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; height: 440px; box-shadow: 0 1px 2px rgba(16,24,32,.06), 0 12px 32px rgba(16,24,32,.10); }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.slide figcaption { margin-top: 18px; max-width: 640px; }
.slide figcaption strong { display: block; font-family: var(--display); font-stretch: var(--stretch); font-weight: 600; font-size: 22px; }
.slide figcaption span { color: var(--on-tint); font-size: 16px; }
.car-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.car-nav button { width: 46px; height: 46px; border-radius: var(--r); border: 2px solid var(--ink); background: var(--white); color: var(--ink); font-family: var(--body); font-size: 20px; cursor: pointer; }
.car-nav button:disabled { opacity: .35; cursor: default; }
.car-nav button:disabled:hover { background: var(--white); color: var(--ink); }
.swipe-hint { display: none; }
.car-nav button:hover { background: var(--ink); color: var(--white); }
.dots { display: flex; gap: 8px; margin-left: 8px; }
.dots i { width: 28px; height: 4px; background: var(--rule); }
.dots i.on { background: var(--teal); }
.car-nav .arrow { margin-left: auto; color: var(--teal); }
@media (max-width: 720px) {
  .track { display: block; overflow: visible; }
  .slide { margin-bottom: 36px; }
  .slide .frame { height: 300px; overflow: auto; -webkit-overflow-scrolling: touch; }
  .slide img { width: 230%; max-width: none; height: auto; object-fit: initial; }
  .swipe-hint { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; }
  .car-nav button, .dots { display: none; }
  .car-nav { margin-top: 0; }
  .car-nav .arrow { margin-left: 0; }
}

/* about box */
.about-box { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; border-top: 6px solid var(--ink); padding-top: 40px; align-items: start; }
.photo { aspect-ratio: 4 / 5; background: var(--pale); border: 1px dashed var(--rule); display: grid; place-items: center; text-align: center; font-size: 13px; line-height: 1.35; color: var(--on-tint); padding: 10px; }
.photo b { display: block; font-family: var(--display); font-stretch: var(--stretch); font-size: 40px; line-height: 1; color: var(--teal); margin-bottom: 6px; }
.about-box:not(:has(.photo)) { grid-template-columns: minmax(0, 1fr); }
.photo.has-img { padding: 0; border: 0; background: var(--deep); overflow: hidden; }
.photo.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.contact-face { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.contact-face img { width: 72px; height: 72px; object-fit: cover; display: block; }
.contact-face span { font-weight: 600; }
.about-box h2 { margin-bottom: 18px; }
@media (max-width: 720px) { .about-box { grid-template-columns: 1fr; gap: 24px; } .about-box .photo { max-width: 150px; } }

/* questions */
.faq-list { margin-top: 36px; border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary:hover { color: var(--teal); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-family: var(--display); font-stretch: var(--stretch); font-weight: 600; font-size: 22px; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--body); font-weight: 400; font-size: 30px; color: var(--teal); }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p, .faq-list details ul { margin: 0; padding-bottom: 22px; max-width: 720px; color: var(--on-tint); }
.faq-list details ul { padding-left: 22px; }
.faq-list details p + ul { margin-top: -12px; }
@media (max-width: 720px) { .faq-list summary { font-size: 20px; } }

/* closing band */
.start p { max-width: 700px; }

footer { background: var(--ink); color: var(--foot-text); padding: 56px 0 40px; font-size: var(--fs-small); }
footer .logo { margin-bottom: 18px; }
footer p { max-width: 600px; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 1em; }
.foot-contact a, .foot-contact span, .foot-links a { padding: 12px 0; min-width: 44px; }
footer p a { display: inline-block; padding: 12px 0; }
footer a:hover { color: var(--sage-logo); }
.case + .note + .cta-row { margin-top: 28px; }
.quotes + .cta-row { margin-top: 44px; }
footer a { color: var(--white); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }

/* before-and-after on a sage band */
.shift.on-sage td:nth-child(2) { color: var(--on-tint); }
.shift.on-sage th:nth-child(3), .shift.on-sage td:nth-child(3) { background: var(--white); }
.shift.on-sage td { border-bottom-color: var(--rule-sage); }
.band-pale .about-box .photo { background: var(--white); }

/* the 'industry is tough' statement: first two sentences large, the rest at reading size */
.solvable { padding: 64px 0; }
.say { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.say p { margin: 0; }
.say .big { font-family: var(--display); font-stretch: var(--stretch); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.18; color: var(--white); }
.say .rest { font-size: var(--fs-lede); line-height: 1.55; color: var(--on-dark-soft); border-left: 4px solid var(--malt); padding-left: 32px; }
.solvable .note { margin-top: 28px; }
@media (max-width: 820px) { .solvable { padding: 48px 0; } .say { grid-template-columns: 1fr; gap: 18px; } .say .rest { font-size: 17px; border-left: 0; padding-left: 0; } }
.band-sage .about-box .photo { background: var(--white); }
.band-pale .benefits span { color: var(--on-tint); }
.slide figcaption span { color: var(--muted); }
.band-pale .slide figcaption span, .band-sage .slide figcaption span { color: var(--on-tint); }

/* about box without a photo: the first paragraph carries the section at a larger size */
.about-box:not(:has(.photo)) .measure { max-width: 900px; }
.about-box:not(:has(.photo)) .measure > h2 + p { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; }

/* desktop nav: mark the page you're on */
header.site nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--white); }
