/* Data on AI: page CSS on top of the kit (system.css, layout.css, motion.css).
   What sits inside a visual or the kit lacks: the directory spread, the mention grid, the report
   listing, the sample sheet, the steps and the about rows. Two inks on the paper: --p-ink and --p-accent. */

:root { --dim: #474744; --rule: #d6d6d2; }
::selection { background: var(--p-accent); color: #fff; }
html { accent-color: var(--p-accent); caret-color: var(--p-accent); scrollbar-color: color-mix(in oklab, var(--p-ink) 35%, var(--p-bg)) var(--p-bg); }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
.btn--secondary, html[data-buttons] .btn--secondary, html[data-buttons] .btn--secondary:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--p-ink); }
.btn--secondary:hover { box-shadow: inset 0 0 0 2px var(--p-ink); }

/* ------------------------------------------------------------ the directory spread (hero visual)
   An excerpt of the sample report: the Maps column against the AI column, made-up names. */
.dir { display: flex; flex-direction: column; gap: 10px; }
.dir__page {
  flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr;
  background: transparent; border: 0; border-block: 1px solid var(--p-ink); border-radius: 0;
  padding: clamp(20px, 2.4vw, 40px) 0; overflow: hidden; min-height: 0;
}
.dir__col { min-width: 0; display: flex; flex-direction: column; padding-inline: clamp(12px, 1.6vw, 28px); }
.dir__col:first-child { padding-left: 0; border-right: 1px solid var(--p-ink); }
.dir__col:last-child { padding-right: 0; }
.dir__head {
  margin: 0; padding-bottom: 10px; border-bottom: 3px double var(--p-ink);
  font: 500 var(--t-small)/1.2 var(--font-text); color: var(--p-ink);
}
.dir__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.dir__list > li {
  flex: 1 1 0; min-height: 56px; max-height: 96px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  border-bottom: 1px solid var(--rule); position: relative; min-width: 0;
}
.dir__list b { font: 600 15px/1.2 var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir__list b s { text-decoration: none; display: inline-block; min-width: 1.6em; font-weight: 500; font-variant-numeric: tabular-nums; }
.dir__list li > span { font-size: 13px; line-height: 1.2; color: var(--dim); }
.dir__col:first-child .dir__list li > span { padding-left: 1.6em; }
.dir__you b, .dir__you > span { color: var(--p-accent) !important; }
.dir__gap > span {
  display: flex; align-items: center; height: calc(100% - 16px); min-height: 36px; padding-inline: 12px;
  border: 1.5px dashed var(--p-accent); border-radius: 4px;
  font: 600 var(--t-small)/1.2 var(--font-text); color: var(--p-accent) !important;
}
.dir__new b { padding-right: 92px; }
.dir__new::after {
  content: "Not in Maps"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font: 500 12px/1 var(--font-text); color: var(--p-ink); padding: 4px 6px; border: 1px solid var(--p-ink); border-radius: 3px; background: var(--p-bg);
}
.dir__note, .matrix__note { margin: 0; font-size: 13px; line-height: 1.3; color: var(--dim); }
@media (max-width: 1023px) {
  .dir__page { padding: 16px 0; }
  .dir__list > li { min-height: 52px; max-height: none; }
  .dir__list > li.dir__desk { display: none; }
  .dir__head { font-size: 13px; }
  .dir__list b { font-size: 13px; }
  .dir__list li > span { font-size: 12px; }
  .dir__gap > span { font-size: 12px; padding-inline: 8px; height: calc(100% - 12px); min-height: 0; }
}

/* ------------------------------------------------------------ the problem statement (word-highlight) */
#problem .mo-wh__text {
  margin: 0; max-width: 1040px;
  font-size: clamp(30px, 2.6vw + 14px, 52px); line-height: 1.08; letter-spacing: var(--display-tracking);
}
.mo-wh__text strong { font-weight: inherit; color: var(--p-accent); }
.mo-wh .mo-w { color: color-mix(in oklab, var(--p-ink) 42%, var(--p-bg)); }

/* ------------------------------------------------------------ what the report shows */
.report__left { display: flex; flex-direction: column; gap: var(--head-gap); }
.matrix { background: transparent; border: 0; border-block: 1px solid var(--p-ink); border-radius: 0; padding: clamp(16px, 2vw, 32px) 0; max-width: 560px; }
.matrix__row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 72px); align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule); }
.matrix__row--head { min-height: 0; padding-bottom: 10px; border-bottom: 3px double var(--p-ink); font: 500 var(--t-small)/1.2 var(--font-text); }
.matrix__row--head span:not(:first-child) { text-align: center; }
.matrix__row--head span:first-child { color: var(--dim); font-size: 12px; }
.matrix__row em { font-style: normal; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.matrix__row b {
  justify-self: center; display: grid; place-items: center; width: 40px; height: 28px; border-radius: 3px;
  font: 600 14px/1 var(--font-text); font-variant-numeric: tabular-nums;
  background: color-mix(in oklab, var(--p-ink) calc(var(--n) / 13 * 100%), var(--p-bg)); color: var(--p-ink);
}
.matrix__row b.hi { color: #fff; }
.matrix__row--you em { color: var(--p-accent); }
.matrix__row--you b { background: transparent; border: 1.5px dashed var(--p-accent); color: var(--p-accent); }
.matrix__note { margin-top: 12px; }
.listing { list-style: none; margin: 0; padding: 0; }
.listing > li { display: grid; gap: var(--s-3); padding-block: var(--s-6); border-bottom: 1px solid var(--rule); }
.listing > li:first-child { padding-top: 0; }
.listing h3 { margin: 0; font: var(--display-weight) var(--t-h3)/1.15 var(--font-display); letter-spacing: -0.02em; }
.listing p { margin: 0; color: var(--dim); max-width: 44ch; }
@media (max-width: 1023px) {
  .report__left { gap: var(--s-6); }
  .matrix { max-width: none; }
}
@media (max-width: 639px) {
  .matrix__row { grid-template-columns: minmax(0, 1fr) repeat(3, 56px); min-height: 40px; }
  .matrix__row--head { font-size: 12px; }
  .listing > li { padding-block: var(--s-5); }
}

/* ------------------------------------------------------------ the sample report (an excerpt card that opens the page) */
.sample__text { display: grid; gap: var(--s-5); align-content: start; }
.sample__text h2 { margin: 0; }
.sample__text p { margin: 0; }
.sample__text p:not(.t-lead) { color: var(--dim); max-width: 46ch; }
.sample__text .btn-row { margin-top: var(--s-3); }
.sample__sheet {
  display: flex; flex-direction: column; gap: var(--s-5); color: var(--p-ink); text-decoration: none;
  border-block: 1px solid var(--p-ink); padding: clamp(20px, 3vw, 40px) 0;
}
.sample__sheet:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 6px; }
.sample__top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 3px double var(--p-ink); font: 500 var(--t-small)/1.2 var(--font-text); }
.sample__top span:last-child { color: var(--dim); }
.sample__stat { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sample__stat b { font: 500 clamp(44px, 4vw, 64px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--p-accent); }
.sample__stat small { font-size: 18px; letter-spacing: 0; color: var(--dim); font-weight: 400; }
.sample__stat > span { color: var(--dim); }
.sample__rows { display: grid; }
.sample__row { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) minmax(60px, 30%) 5.2em; align-items: center; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.sample__row:first-child { border-top: 1px solid var(--p-ink); }
.sample__row s { text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums; }
.sample__row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sample__row i { display: block; height: 10px; background: var(--p-surface); position: relative; }
.sample__row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--n) / 20 * 100%); background: var(--p-ink); }
.sample__row em { font-style: normal; text-align: right; color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.sample__row--acc b, .sample__row--acc em { color: var(--p-accent); }
.sample__row--acc i { background: transparent; border: 1.5px dashed var(--p-accent); }
.sample__src { color: var(--dim); font-size: var(--t-small); }
.sample__open { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.sample__open svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sample__sheet:hover .sample__open { color: var(--p-accent); }
@media (max-width: 1023px) { .sample__sheet { margin-top: var(--s-7); } }
@media (max-width: 639px) {
  .sample__row { grid-template-columns: 1.4em minmax(0, 1fr) 4.8em; }
  .sample__row i { grid-column: 2 / -1; grid-row: 2; }
  .sample__top span:last-child { display: none; }
}

/* ------------------------------------------------------------ steps */
.steps { list-style: none; margin: auto 0 0; padding: 0; }
.steps > li { display: grid; gap: var(--s-4); align-content: start; padding-top: var(--s-5); border-top: 3px double var(--p-ink); }
.steps__n { font: var(--display-weight) clamp(96px, 11vw, 200px)/0.9 var(--font-display); letter-spacing: -0.04em; color: var(--p-ink); }
.steps h3 { margin: var(--s-4) 0 0; font: var(--display-weight) clamp(26px, 1vw + 18px, 34px)/1.12 var(--font-display); letter-spacing: -0.025em; max-width: 15ch; }
.steps p { margin: 0; color: var(--dim); max-width: 34ch; }
@media (max-width: 1023px) {
  .steps { row-gap: var(--s-7); }
  .steps__n { font-size: 72px; }
  .steps h3 { margin-top: 0; max-width: none; }
}

/* ------------------------------------------------------------ about */
.about { list-style: none; margin: 0; padding: 0; }
.about > li {
  padding-block: var(--s-6); border-bottom: 1px solid var(--rule);
  font: var(--display-weight) clamp(22px, 1vw + 16px, 32px)/1.2 var(--font-display); letter-spacing: -0.02em; max-width: 30ch;
}
.about > li:first-child { padding-top: 0; }
@media (max-width: 1023px) { .about { margin-top: var(--s-6); } .about > li { padding-block: var(--s-5); font-size: 25px; } }

/* ------------------------------------------------------------ nav at the narrowest phones */
@media (max-width: 379px) { .nav:not(.is-open) .nav__actions { display: none; } }

/* ------------------------------------------------------------ footer bits */
.footer__col ul { list-style: none; margin: 0; padding: 0; }

/* ------------------------------------------------------------ contact form (footer, dark ground) */
.contact { row-gap: var(--s-6); }
.contact__head { display: grid; gap: var(--s-4); align-content: start; }
.contact__head h2 { margin: 0; }
.contact__head p { margin: 0; max-width: 36ch; }
.contact__form .field :is(input, textarea) { background: transparent; color: var(--ink); border: 1px solid color-mix(in oklab, var(--ink) 45%, transparent); border-radius: 0; font-size: 16px; }
.contact__form .field :is(input, textarea):focus-visible { outline: 2px solid var(--p-accent); outline-offset: 1px; border-color: var(--ink); }
.contact__form .field label { color: var(--ink); }
.contact__form .form__status { font-size: var(--t-body); }
.contact__form .btn-row .btn { min-width: 160px; }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sections at 1280px and wider: at least one screen, but they grow when the content needs more (the
   embedded sample report, the contact form, or a short window). The kit's fixed height let the content
   run over the next section. The kit already does this from 640 to 1279. */
@media (min-width: 1280px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing {
    height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
    display: flex; flex-direction: column;
  }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap {
    flex: 1 0 auto; height: auto; min-height: 0;
  }
}

/* short sections take the space they need, not a whole screen: the problem statement, How I work, About */
main > section:is(#problem, #report, #sample, #how, #about) { height: auto; min-height: 0; padding-block: clamp(72px, 9vw, 144px); }
main > section:is(#problem, #report, #sample, #how, #about) > .wrap { height: auto; }
#how .steps { margin-top: clamp(40px, 5vw, 72px); }

/* the hero's hook: the Maps leader that AI barely names */
.dir__gap > span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.dir__gap > span b { font: 600 clamp(22px, 1.6vw + 6px, 30px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--p-accent); }

/* the optional niche field */
.field__opt { font-weight: 400; color: var(--p-inv-muted); }
.field__hint { margin: 0; font: 400 var(--t-small)/1.4 var(--font-text); color: var(--p-inv-muted); }

/* phone hero: the two buttons side by side, so the report excerpt comes up sooner */
@media (max-width: 639px) {
  .hero .btn-row { flex-direction: row; flex-wrap: nowrap; gap: 10px; }
  .hero .btn-row .btn { width: auto; flex: 1 1 auto; padding-inline: 14px; white-space: nowrap; }
}
.contact__form .field { align-content: start; }
@media (max-width: 1023px) {
  .dir__list > li.dir__gap { justify-content: center; }
  .dir__gap > span { height: auto; min-height: 0; padding-block: 8px; }
  .dir__gap > span b { font-size: 20px; }
}
.dir__gap > span b { flex: none; overflow: visible; }
@media (max-width: 639px) { .dir__col:first-child .dir__list li > span { display: none; } }
@media (max-width: 639px) {
  .hero-visual.dir { flex: none; height: auto; min-height: 0; }
  .dir__page { overflow: visible; flex: none; }
  .dir__list > li { flex: none; min-height: 46px; padding-block: 6px; }
}

/* the narrowest phones (under 380px): the arrow goes and the padding tightens, so both buttons fit the line */
@media (max-width: 379px) {
  .hero .btn-row .btn { padding-inline: 10px; }
  .hero .btn-row .btn .m-arrow { display: none; }
}
