﻿/* itemlift.app home page only, on top of styles.css (the Workpaper world:
   tokens, font, header box, marks, footer). See DESIGN.md. */

.hero .wrap, .how .wrap, .built .wrap, .faq .wrap { background: var(--pad); }

/* Hero: an unruled description column (the pitch) and a ruled money column (the product). */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 452px; gap: 56px; align-items: start; }
.lead { font-size: 21px; color: var(--ink-soft); max-width: 60ch; margin: 0 0 28px; }
.legend { margin: 40px 0 0; border: 1px solid var(--ink); background: var(--pad-paper); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.legend > div { padding: 16px 18px; border-left: 1px solid var(--rule-col); }
.legend > div:first-child { border-left: 0; }
.legend dt { display: flex; align-items: center; gap: 10px; }
.legend dt span { font-size: 13px; }
.legend dd { margin: 8px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink-soft); }

.money {
  padding: 34px 36px 56px;
  border-top: 3px double var(--ink); border-left: 1px solid var(--rule-col); border-right: 1px solid var(--rule-col);
  border-bottom: 1px solid var(--rule-row);
  background-color: var(--pad);
  /* Rows count up from the bottom rule, so the column ends on a full row;
     any partial row lands against the double rule at the top. */
  background-image:
    repeating-linear-gradient(90deg, transparent 0 59px, var(--rule-col) 59px 60px),
    repeating-linear-gradient(0deg, var(--rule-row) 0 1px, transparent 1px var(--row));
  background-position: 0 0, 0 100%;
}
.pinned { position: relative; margin: 0; }
.pinned img { display: block; width: 100%; height: auto; background: var(--sheet); border: 1px solid var(--ink); }
.staple { position: absolute; top: -6px; left: 50%; width: 64px; height: 14px; margin-left: -32px; fill: var(--graphite); }
/* Each tick sits just right of the new price it verifies. */
.pinned .mark { position: absolute; left: 44%; width: 30px; height: 26px; }
.pinned .at-1 { top: calc(71.5% - 14px); } .pinned .at-2 { top: calc(79.6% - 14px); } .pinned .at-3 { top: calc(87.6% - 14px); }
.pinned figcaption { position: absolute; top: calc(100% + 12px); left: 0; right: 0; font-size: 12px; color: var(--ink-soft); text-wrap: balance; }

/* Sections share one rhythm: more space above a heading than below. */
section { padding: 72px 0; }
.sub { font-size: 19px; color: var(--ink-soft); max-width: 62ch; margin: 0 0 32px; }

/* Comparison workpaper */
.compare { background: var(--pad-paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; vertical-align: middle; padding: 14px 16px; border-bottom: 1px solid var(--rule-col); }
thead th { font-size: 13px; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 640; font-size: 17px; text-transform: none; letter-spacing: 0; font-stretch: 87%; }
td { font-size: 17px; }
td .mark { vertical-align: -6px; margin-right: 8px; }
td:last-child { font-weight: 560; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; padding: 24px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--rule-col); }
.steps li::before { content: counter(step); display: block; font-stretch: 75%; font-weight: 760; font-size: 40px; line-height: 1; color: var(--ink); margin-bottom: 12px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Ticked list */
.ticklist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 2px solid var(--ink); }
.ticklist li { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule-col); }
.ticklist .mark { margin-top: 2px; }
.ticklist p { margin: 0; color: var(--ink-soft); }

/* Sign-off */
.signoff-box {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 470px); gap: 40px; align-items: end;
  border: 2px solid var(--ink); background: var(--pad-paper); padding: 36px 40px;
}
.signoff-box p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.sign { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.sign .link { font-weight: 600; align-self: flex-start; }

@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .money { max-width: 452px; }
  .legend { grid-template-columns: 1fr; }
  .legend > div { border-left: 0; border-top: 1px solid var(--rule-col); }
  .legend > div:first-child { border-top: 0; }
  .steps, .ticklist { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-col); }
  .signoff-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .money { padding: 28px 20px 52px; }
  section { padding: 56px 0; }
  .signoff-box { padding: 28px 20px; }
  /* The comparison restacks: one ruled entry per step, both answers labeled. */
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, th, td { display: block; }
  tr { padding: 14px 0; border-bottom: 1px solid var(--rule-col); }
  tbody th, td { border: 0; padding: 4px 0; }
  tbody th { font-size: 18px; margin-bottom: 4px; }
  td::before { content: attr(data-label); display: block; font-stretch: 75%; font-weight: 640; letter-spacing: 0.07em; text-transform: uppercase; font-size: 12px; color: var(--ink-soft); margin-bottom: 2px; }
}
