/* Vencer Automation: sub-page layer. Loaded after the kit's system.css on every page that is not the
   homepage (tools, templates, trade pages). These are read-and-use pages, so sections size to their
   content instead of the homepage's one-section-per-screen rule. */

@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --p-bg: #f7f3ec; --p-surface: #efe8dc; --p-ink: #201e1f; --p-muted: #696665;
  --p-accent: #e8501f; --p-accent-ink: #111111; --p-action: #e8501f; --p-action-ink: #111111;
  --p-inv-bg: #201e1f; --p-inv-surface: #2c2a2b; --p-inv-ink: #f7f3ec; --p-inv-muted: #9e9a97;
  --p-inv-accent: #e8501f; --p-inv-accent-ink: #111111; --p-inv-action: #e8501f; --p-inv-action-ink: #111111;
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.038em;
}

::selection { background: #e8501f; color: #111111; }
h1, h2 { hyphens: manual; text-wrap: balance; }
.nav__logo img { width: 28px; height: 28px; }

/* sections size to their content */
html.sub main > :is(section, .section) { height: auto; min-height: 0; padding: var(--s-9) 0; }
html.sub main > section > .wrap { height: auto; display: block; }
html.sub main > .hero { height: auto; min-height: 0; padding: calc(var(--nav) + var(--s-8)) 0 var(--s-8); }
html.sub main > .hero > .wrap { display: block; height: auto; }
html.sub footer.sub-footer { height: auto; padding: var(--s-9) 0 var(--s-7); }
html.sub footer.sub-footer > .wrap { height: auto; }
@media (max-width: 639px) {
  html.sub main > :is(section, .section) { padding: var(--s-8) 0; }
  html.sub main > .hero { padding: calc(var(--nav) + var(--s-7)) 0 var(--s-7); }
}

.wrap.narrow { width: min(100% - 2 * var(--gut), var(--container)); }
.wrap.narrow > * { max-width: 760px; }
.hero h1 { font-size: clamp(38px, 3.2vw + 20px, 64px); line-height: 1.04; letter-spacing: var(--display-tracking-xl); margin-bottom: var(--s-5); }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 60ch; margin-bottom: var(--s-5); }
.byline { font-size: var(--t-small); color: var(--muted); margin-top: var(--s-5); }
section h2 { margin-bottom: var(--s-5); }
section p + p { margin-top: var(--s-4); }
section .hint, .hint { font-size: var(--t-small); color: var(--muted); }
main p, main li { max-width: 68ch; }

/* grounds */
.band { background: var(--surface); }
.dark { background: var(--p-inv-bg); color: var(--p-inv-ink); }
.dark h2, .dark h3, .dark p { color: var(--p-inv-ink); }

/* grids and cards */
.grid-2, .grid-3 { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.grid-2 > *, .grid.grid-3 > * { grid-column: auto; }
.card.cream { background: var(--p-bg); }
.band .card.cream { background: var(--p-bg); }
.card h3 { margin-bottom: var(--s-2); }
.num { font-size: var(--t-label); font-weight: 500; color: var(--muted); display: block; margin-bottom: var(--s-2); }

/* lists */
/* forms */
.field { margin-bottom: var(--s-5); }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: var(--s-2); }
.field label .hint { font-weight: 400; }
input[type=number], input[type=email], input[type=text], select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font: 400 16px/1 var(--font-text); background: #fff; color: var(--ink);
  transition: border-color 160ms cubic-bezier(.23,1,.32,1), box-shadow 160ms cubic-bezier(.23,1,.32,1);
}
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklab, #e8501f 30%, transparent); }
.hp { position: absolute; left: -5000px; }

/* message templates */
.msg { background: var(--p-bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-4) var(--s-5); white-space: pre-wrap; font: 400 15px/1.6 var(--font-text); color: var(--ink); max-width: none; }
.msg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-3); gap: var(--s-3); }
.tag { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.copy {
  height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink);
  font: 500 13px/1 var(--font-text); cursor: pointer;
  transition: transform 160ms cubic-bezier(.23,1,.32,1), background-color 160ms;
}
.copy:hover { background: var(--p-surface); }
.copy:active { transform: scale(0.97); }

/* the 7-day flowchart */
.flow { list-style: none; padding: 0; margin: 0; counter-reset: day; }
.flow > li { position: relative; padding: 0 0 var(--s-7) 64px; max-width: none; }
.flow > li::before {
  counter-increment: day; content: counter(day);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--p-bg); display: grid; place-items: center; font-weight: 500; font-size: 15px;
}
.flow > li::after { content: ""; position: absolute; left: 19.5px; top: 48px; bottom: 8px; width: 1px; background: var(--line); }
.flow > li:last-child::after { display: none; }
.when { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.flow h3 { margin: var(--s-1) 0 var(--s-3); }
.flow .card { margin-top: var(--s-4); }
.branch { border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); margin: var(--s-4) 0; background: var(--p-bg); }

.ps { color: var(--muted); margin-top: var(--s-6); }
.ps a, main p a:not(.btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--ink) 35%, transparent); }

/* footer */
.sub-footer .footer__legal { margin-top: var(--s-8); }

/* the templates' [brackets] are fields for the reader to fill in, not leftovers: no draft outline */
html.sub [data-placeholder] { outline: none !important; }
