/* vitaliilavelin.com long-form page layout: /free/**, /sprint/**.
   Shared tokens, nav and footer come from /site.css; this file owns the reading column,
   type scale, buttons, the download rows, the tool cards and the Kit signup form.
   Kept at the site root on purpose: /assets/* is cached immutable for a year. */

:root {
  --surface: var(--vl-surface); --cream: var(--vl-cream); --paper: var(--vl-paper);
  --ink: var(--vl-ink); --ink-2: var(--vl-ink-2); --muted: var(--vl-muted); --muted-2: var(--vl-muted-text);
  --line: var(--vl-line); --line-dark: var(--vl-line-dark);
  --serif: var(--vl-serif); --sans: var(--vl-sans);
  --max: 44rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
section { padding: 3.5rem 0; }
@media (min-width: 768px) { section { padding: 4.5rem 0; } }

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2); margin: 0 0 1.25rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 2.35rem; line-height: 1.12; margin-bottom: 1.25rem; }
h2 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 1.25rem; }
h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.4rem; }
@media (min-width: 768px) { h1 { font-size: 3.1rem; } h2 { font-size: 2rem; } }
p { margin: 0 0 1rem; color: var(--ink-2); }
p.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
@media (min-width: 768px) { p.lead { font-size: 1.3rem; } }
strong { font-weight: 600; color: var(--ink); }

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  text-decoration: none; padding: 0.95rem 1.6rem; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--cream); transition: opacity .15s ease; line-height: 1.2;
}
.btn:hover { opacity: 0.88; }
.btn.light { background: var(--cream); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.dark .btn.ghost { color: var(--cream); border-color: var(--cream); }
.btn-note { display: block; margin-top: 0.85rem; font-size: 0.85rem; color: var(--muted-2); }
.btn-note a { color: inherit; }

.cream { background: var(--cream); }
.dark { background: var(--surface); color: var(--cream); }
.dark p, .dark h2, .dark h3, .dark li { color: var(--cream); }
.dark .eyebrow { color: var(--muted); }
.dark .btn-note { color: var(--muted); }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { position: relative; padding-left: 1.4rem; margin-bottom: 0.75rem; color: var(--ink-2); }
ul.plain li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.5rem; height: 1px; background: var(--ink); }
.dark ul.plain li::before { background: var(--cream); }
ol.steps { padding-left: 1.4rem; margin: 0; }
ol.steps li { margin-bottom: 0.75rem; color: var(--ink-2); padding-left: 0.25rem; }

/* Day-by-day rows (Sprint) */
.rhythm { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.rhythm .row { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.rhythm .day { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.rhythm .row p { margin: 0; }
@media (max-width: 480px) { .rhythm .row { grid-template-columns: 1fr; gap: 0.25rem; } }

/* Who */
.who { display: flex; gap: 1.5rem; align-items: flex-start; }
.who img { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
@media (max-width: 480px) { .who { flex-direction: column; } }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2rem; margin-top: 1.75rem; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts .f .num { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--ink); }
.facts .f .lbl { font-size: 0.85rem; color: var(--muted-2); margin-top: 0.35rem; }

/* Tool cards (hub, "goes with" lists) */
.tools { display: grid; gap: 0; margin-top: 1.5rem; border-top: 1px solid var(--ink); }
.tools .t { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.tools .t .n { font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--muted-2); padding-top: 0.2rem; }
.tools .t h3 { margin-bottom: 0.4rem; }
.tools .t h3 a { text-decoration: none; }
.tools .t h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tools .t p { margin-bottom: 0.6rem; }
.tools .t .go { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); font-size: 0.95rem; }
.tools .t .go:hover { opacity: 0.8; }
.tools.compact .t { padding: 1rem 0; }
.tools.compact .t p { margin-bottom: 0.3rem; }

/* Download rows */
.dl { border-top: 1px solid var(--ink); margin-top: 1.5rem; }
.dl .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.dl .name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.dl .meta { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--muted-2); margin-top: 0.15rem; }
.dl .btn { padding: 0.7rem 1.2rem; font-size: 0.95rem; }

/* Button rows (delivery page, agent card) */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.actions .btn { padding: 0.7rem 1.2rem; font-size: 0.95rem; }

/* Agent cards */
.agent { border-top: 1px solid var(--ink); padding: 1.75rem 0 2rem; }
.agent:last-of-type { border-bottom: 1px solid var(--ink); }
.agent .n { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.5rem; }
.agent h3 { font-size: 1.4rem; margin-bottom: 0.9rem; }
.agent .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.1rem; }
.video {
  display: flex; flex-direction: column; justify-content: center; gap: 0.25rem;
  border: 1px dashed var(--line); border-radius: 6px; padding: 1rem 1.25rem; margin-top: 1.25rem;
  font-size: 0.9rem; color: var(--muted-2);
}
.video .lbl { font-weight: 600; color: var(--ink); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; }

/* Kit signup form. Markup is Kit's inline-embed shape (seva-form / formkit-form, data-element
   hooks) driven by ck.5.js; the look is ours. .kf__row is the input + button line. */
.kf { display: block; max-width: 30rem; margin-top: 1.5rem; }
.kf__row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 560px) { .kf__row { flex-direction: row; } }
.kf input[type="email"] {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
}
.kf input[type="email"]::placeholder { color: var(--muted-2); }
/* On dark the field is an outline and the button the only solid cream shape, so they never read as one. */
.dark .kf input[type="email"] { background: transparent; color: var(--cream); border-color: rgba(247,245,240,0.55); }
.dark .kf input[type="email"]::placeholder { color: var(--muted); }
.dark .kf input[type="email"]:focus { outline: 2px solid var(--cream); outline-offset: 1px; }
.dark .kf .btn { box-shadow: 4px 4px 0 rgba(247,245,240,0.35); }
.kf .btn { white-space: nowrap; }
.kf .formkit-alert { list-style: none; margin: 0 0 0.6rem; padding: 0; font-size: 0.9rem; }
.kf .formkit-alert:empty { display: none; }
.kf .formkit-alert-error { color: #b3261e; }
.dark .kf .formkit-alert-error { color: #f2b8b5; }
.kf .formkit-alert-success { color: var(--ink); }
.dark .kf .formkit-alert-success { color: var(--cream); }
