/* MILL5 product sites: azurebestpractices.com and azurebestpractices.ai. One system, two grounds. See analyzer/DESIGN.md. */

@font-face { font-family: Archivo; src: url("assets/fonts/Archivo-Variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

.marketing {
  --ground: #f4f5f1; --sheet: #ffffff; --ink: #0f1714; --text: #2f3a35; --quiet: #55615b;
  --rule: #cdd3cb; --cut: #c9401f; --cut-fill: #e2573d; --land: #1d6b4f; --focus: #0f1714;
  --band: #0f1714; --band-ink: #f1f4ef; --band-text: #d5dcd6; --band-quiet: #a3b0a8; --band-rule: #2c3a34;
  --gutter: max(1.5rem, calc((100% - 76rem) / 2));
  margin: 0; background: var(--ground); color: var(--text);
  font: 400 1.0625rem/1.55 Archivo, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: lining-nums tabular-nums; -webkit-text-size-adjust: 100%;
}
.marketing.site-ai {
  --ground: #0f1714; --sheet: #172019; --ink: #f1f4ef; --text: #d5dcd6; --quiet: #a3b0a8;
  --rule: #2c3a34; --cut: #ff8468; --cut-fill: #ff7a5c; --land: #5cc79b; --focus: #f1f4ef;
  --band: #f4f5f1; --band-ink: #0f1714; --band-text: #2f3a35; --band-quiet: #55615b; --band-rule: #cdd3cb;
}
.marketing ::selection { background: #e2573d; color: #0f1714; }
.marketing :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.marketing a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.marketing h1, .marketing h2, .marketing h3, .marketing p, .marketing ul, .marketing ol, .marketing figure, .marketing fieldset { margin: 0; }
.marketing h1, .marketing h2 { font-weight: 800; font-stretch: 88%; color: var(--ink); text-wrap: balance; letter-spacing: -.02em; }
.marketing h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .98; }
.marketing h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.02; max-width: 16em; }
.marketing h3 { font: 700 1.0625rem/1.3 Archivo, sans-serif; color: var(--ink); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .7rem 1rem; background: #0f1714; color: #fff; z-index: 20; }
.skip-link:focus { top: .5rem; }
.lede { font-size: 1.25rem; line-height: 1.45; max-width: 30em; }
.note { font-size: .9375rem; color: var(--quiet); max-width: 34em; }

/* Header and footer stay white so the MILL5 mark sits on its own ground. */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .85rem var(--gutter); background: #fff; color: #0f1714; border-bottom: 1px solid #cdd3cb; --focus: #0f1714; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; min-width: 0; }
.brand img { width: 112px; height: auto; flex: none; }
.brand span { font-weight: 650; font-size: .9375rem; line-height: 1.2; padding-left: 1rem; border-left: 1px solid #c3cac1; }
.brand b { font-weight: 650; color: #c9401f; }
.site-header nav { display: flex; align-items: center; gap: 1.9rem; font-weight: 500; font-size: .9375rem; white-space: nowrap; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.5rem; background: var(--ink); color: var(--ground) !important; font: 650 1rem/1.1 Archivo, sans-serif; text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: background-color .15s ease-out; }
.btn:hover { background: var(--cut-fill); color: #0f1714 !important; }
.site-ai main .btn { background: var(--cut-fill); color: #0f1714 !important; }
.site-ai main .btn:hover { background: #f1f4ef; }
.site-ai main .band .btn:hover { background: #0f1714; color: #f1f4ef !important; }
.site-header .btn:hover { background: #c9401f; color: #fff !important; }
.site-header .btn { background: #0f1714; color: #fff !important; min-height: 2.75rem; padding: .6rem 1.2rem; font-size: .9375rem; }
.btn-quiet { background: none; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--ground) !important; }
.site-ai main .btn-quiet { background: none; color: var(--ink) !important; }
.site-ai main .btn-quiet:hover { background: var(--ink); color: var(--ground) !important; }

/* First screen: the sentence, and the bridge it is about. */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem 4.5rem; align-items: start; padding: clamp(2.75rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.hero .lede { margin-top: 1.6rem; }
.hero .btn { margin-top: 1.9rem; }
.hero .note { margin-top: 1rem; }
.bridge { min-width: 0; }
.bridge svg { display: block; width: 100%; height: auto; overflow: visible; }
.bridge .bar-found { fill: var(--ink); }
.bridge .bar-cut { fill: var(--cut-fill); }
.bridge .bar-done { fill: var(--land); transition: height .35s cubic-bezier(.2, .8, .2, 1), y .35s cubic-bezier(.2, .8, .2, 1); }
.bridge .axis { stroke: var(--ink); stroke-width: 2; }
.bridge .value { font: 750 27px Archivo, sans-serif; font-stretch: 80%; fill: var(--ink); }
.bridge .link { stroke: var(--ink); stroke-width: 2; }
.bridge .value-cut { fill: var(--cut); }
.bridge .value-done { fill: var(--land); transition: y .35s cubic-bezier(.2, .8, .2, 1); }
.bridge .unit { font: 500 13.5px Archivo, sans-serif; fill: var(--quiet); }
.bridge .unit-done { transition: y .35s cubic-bezier(.2, .8, .2, 1); }
.bridge .label { font: 650 15px Archivo, sans-serif; fill: var(--ink); }
.bridge .sub { font: 400 13.5px Archivo, sans-serif; fill: var(--quiet); }
.js .bridge [data-step] { cursor: pointer; }
.js .bridge [data-step]:hover .bar-cut { fill: var(--cut); }
.bridge figcaption { margin-top: 1rem; font-size: .875rem; color: var(--quiet); }

.section { padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); border-top: 1px solid var(--rule); }
.section > h2 + p { margin-top: 1.2rem; }
.band { background: var(--band); color: var(--band-text); border-top: 0; --ink: var(--band-ink); --text: var(--band-text); --quiet: var(--band-quiet); --rule: var(--band-rule); --focus: var(--band-ink); --ground: var(--band); }
.site-com .band { --cut: #ff8468; --cut-fill: #ff7a5c; --land: #5cc79b; }
.site-ai .band { --cut: #c9401f; --cut-fill: #e2573d; --land: #1d6b4f; }
.band + .section { border-top: 0; }

/* The sample estate */
.estate-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }
.estate-head .lede { margin-top: 1rem; }
.estate-tools { display: flex; flex-wrap: wrap; gap: .6rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tabs button { font: 600 .9375rem/1 Archivo, sans-serif; padding: .65rem 1rem; background: none; color: var(--ink); border: 0; box-shadow: inset 0 0 0 1.5px var(--rule); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--ground); box-shadow: none; }
.tally { position: sticky; top: var(--header-h, 4.1rem); z-index: 2; margin-top: 1.25rem !important; padding: .8rem 0; background: var(--band); border-bottom: 2px solid var(--ink); font-weight: 650; color: var(--ink); }
.marketing .findings { list-style: none; padding: 0; }
.finding { display: grid; grid-template-columns: minmax(0, 1fr) 11rem 8.5rem 8.5rem; gap: .5rem 2rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.finding h3 { font-size: 1.0625rem; }
.finding p { font-size: .9375rem; color: var(--quiet); margin-top: .2rem; }
.finding .who { font-size: .9375rem; color: var(--text); }
.finding .who small { display: block; color: var(--quiet); font-size: .8125rem; }
.finding .amount { font: 750 1.375rem/1 Archivo, sans-serif; font-stretch: 82%; color: var(--cut); text-align: right; }
.finding .amount small { display: block; font: 400 .8125rem/1.3 Archivo, sans-serif; font-stretch: 100%; color: var(--quiet); margin-top: .25rem; }
.finding label { display: flex; align-items: center; gap: .55rem; justify-content: flex-end; font-size: .9375rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.finding input { appearance: none; width: 1.5rem; height: 1.5rem; margin: 0; border: 1.5px solid var(--ink); background: none; display: grid; place-content: center; cursor: pointer; flex: none; }
.finding input::after { content: ""; width: .8rem; height: .45rem; border: solid var(--ground); border-width: 0 0 2.5px 2.5px; transform: translateY(-.1rem) rotate(-45deg) scale(0); transition: transform .12s ease-out; }
.finding input:checked { background: var(--land); border-color: var(--land); }
.finding input:checked::after { transform: translateY(-.1rem) rotate(-45deg) scale(1); }
.finding.is-done h3, .finding.is-done .amount { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--land); }
.finding.is-done .amount { color: var(--land); }
html:not(.js) .finding label, html:not(.js) .tabs, html:not(.js) .estate-tools, html:not(.js) .tally { display: none; }
.shot { margin-top: clamp(2.5rem, 5vw, 4rem); min-width: 0; }
.shot figcaption { margin-bottom: .7rem; font-size: .875rem; color: var(--quiet); }
.shot-frame { background: #fff; border: 1px solid var(--rule); overflow-x: auto; }
.shot img { display: block; width: 100%; height: auto; }
.scroll-cue { display: none; }

/* What you leave with, and how MILL5 works with you */
.marketing .plain { list-style: none; padding: 0; margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 3.5rem; }
.plain li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.plain h3 { font-size: 1.25rem; font-stretch: 92%; }
.plain p { margin-top: .5rem; }
.marketing .path { list-style: none; padding: 0; margin-top: 2.5rem; border-top: 2px solid var(--ink); }
.path li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .5rem 3rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.path p { max-width: 40em; }
.marketing .articles { list-style: none; padding: 0; margin-top: 2.5rem; border-top: 2px solid var(--ink); }
.articles li { border-bottom: 1px solid var(--rule); }
.articles a { display: flex; justify-content: space-between; gap: 2rem; align-items: baseline; padding: 1.1rem 0; font-size: 1.25rem; font-weight: 650; font-stretch: 92%; color: var(--ink); text-decoration: none; }
.articles a span { font-size: .875rem; font-weight: 500; font-stretch: 100%; color: var(--quiet); white-space: nowrap; }
.articles a:hover { color: var(--cut); }

/* Scorecard */
.scorecard { margin-top: 2.5rem; border-top: 2px solid var(--ink); }
.scorecard fieldset { border: 0; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 2.5rem; align-items: center; }
.scorecard legend { float: left; padding: 0; font-size: 1.125rem; font-weight: 600; color: var(--ink); max-width: 34em; }
.choices { display: flex; gap: .5rem; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choices span { display: block; padding: .6rem 1rem; font-weight: 600; font-size: .9375rem; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); white-space: nowrap; }
.choices input:checked + span { background: var(--ink); color: var(--ground); box-shadow: none; }
.choices input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.result { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.result p { font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.marketing .result ul { margin: 1rem 0 1.5rem; padding-left: 1.2rem; }
.result li + li { margin-top: .4rem; }
html:not(.js) .scorecard .choices { display: none; }

/* Questions and close */
.faq { margin-top: 2.5rem; border-top: 2px solid var(--ink); max-width: 56rem; }
.faq-item { padding: 1.25rem 0 1.4rem; border-bottom: 1px solid var(--rule); }
.faq-a { margin-top: .45rem !important; max-width: 44em; }
.faq-a a, .lede a, .note a, .path a { color: var(--ink); font-weight: 650; }
.close { padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); background: #e2573d; color: #0f1714; --ink: #0f1714; --ground: #e2573d; --focus: #0f1714; --quiet: #0f1714; }
.marketing .close h2 { color: #0f1714; max-width: 14em; }
.close p { margin-top: 1.2rem; font-size: 1.25rem; max-width: 30em; }
.close .btn { margin-top: 1.9rem; background: #0f1714 !important; color: #fff !important; }
.close .btn:hover { background: #fff !important; color: #0f1714 !important; }
.site-ai main .close .btn { background: #0f1714 !important; color: #fff !important; }
.site-ai main .close .btn:hover { background: #fff !important; color: #0f1714 !important; }
.close .note { font-size: .9375rem; }
.close a:not(.btn) { color: #0f1714; font-weight: 650; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding: 2rem var(--gutter) 2.5rem; background: #fff; color: #55615b; font-size: .875rem; --focus: #0f1714; }
.site-footer img { width: 100px; height: auto; display: block; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; color: #0f1714; }
.site-footer p { flex-basis: 100%; }
.notfound { padding: clamp(4rem, 10vw, 8rem) var(--gutter); min-height: 50vh; }
.notfound p { margin-top: 1.25rem; font-size: 1.25rem; max-width: 30em; }
.notfound .btn { margin-top: 2rem; }

@media (max-width: 1080px) {
  .site-header nav .nav-secondary { display: none; }
  .hero { grid-template-columns: 1fr; }
  .finding { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1.5rem; }
  .finding .amount { grid-column: 2; grid-row: 1; align-self: start; }
  .finding .who { grid-column: 1; grid-row: 2; }
  .finding label { grid-column: 2; grid-row: 2; }
  .path li { grid-template-columns: 1fr; gap: .3rem; }
  .scorecard fieldset { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .marketing { font-size: 1rem; }
  .brand img { width: 88px; }
  .brand span { font-size: .8125rem; padding-left: .75rem; }
  .brand { gap: .75rem; }
  .site-header { gap: .75rem; }
  .site-header .btn { display: none; }
  .estate-tools .btn { flex: 1 1 auto; }
  .lede, .close p { font-size: 1.0625rem; }
  .hero .btn, .close .btn { width: 100%; }
  .bridge-scroll { overflow-x: auto; }
  .bridge svg { min-width: 43rem; }
  .articles a { flex-direction: column; gap: .25rem; font-size: 1.125rem; }
  .choices span { padding: .6rem .8rem; }
  .shot img { width: 46rem; max-width: none; }
  .marketing .scroll-cue { display: block; margin-top: .5rem; font-size: .8125rem; color: var(--quiet); }
}
@media (prefers-reduced-motion: reduce) { .marketing * { transition: none !important; } html { scroll-behavior: auto; } }
@media print {
  .site-header, .skip-link, .hero, .tabs, .estate-tools, .finding label, .section:not(.estate), .close, .site-footer nav, .shot { display: none !important; }
  .marketing, .band { background: #fff !important; color: #000 !important; --ink: #000; --text: #000; --quiet: #333; --cut: #000; --cut-fill: #999; --land: #000; --rule: #999; --ground: #fff; }
  .finding[hidden] { display: grid !important; }
}
