/* The home page. The first screen says what is sold, for whom and for how much, beside real output from the generator.
   Then a job to start from, a few collections, what paying adds, the preparation behind the data, the buyer's questions,
   and the free tools, guides and datasets last. Loaded after site.css and editorial.css, whose home rules it adjusts. */

/* Hero */
.home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; padding: 54px 0 56px; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 { font-size: clamp(2.5rem, 4.2vw, 3.65rem); letter-spacing: -.05em; line-height: 1.08; margin: 0 0 22px; }
.hero-copy h1 em { letter-spacing: -.04em; }
.hero-copy .lead { max-width: 530px; margin-bottom: 26px; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin-top: 16px; font-size: .82rem; }

/* The example: four linked tables from one run of the generator. */
.home-example { min-width: 0; padding: 18px 20px 14px; border: 1px solid #d5deec; border-top: 3px solid var(--accent); border-radius: 10px; background: #fff; box-shadow: 0 14px 40px #1b2f5514; }
.home-example-top { display: flex; justify-content: space-between; gap: 14px; margin: 0 0 12px; font: .65rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.home-example-sentence { margin: 0 0 14px; font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.5; color: var(--ink-soft); }
.home-example-sentence b { font-weight: 500; color: var(--accent); border-bottom: 1px solid #b9c8f5; white-space: nowrap; }
.home-example-tabs { display: none; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.home-example.is-tabbed .home-example-tabs { display: flex; }
.home-example-tabs button { flex: 0 0 auto; min-height: 42px; margin-bottom: -1px; padding: 9px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-soft); font: inherit; font-size: .82rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.home-example-tabs button:hover { color: var(--ink); }
.home-example-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.home-example-tabs button:focus-visible { outline-offset: -3px; }
/* As tabs, the four tables share one space the size of the largest, so choosing one never moves the page. */
.home-example.is-tabbed .home-example-panels { display: grid; }
.home-example.is-tabbed .home-example-panel { grid-area: 1 / 1; min-width: 0; }
.home-example.is-tabbed .home-example-panel[data-off] { visibility: hidden; }
.home-example-panel:focus-visible { outline-offset: 2px; }
.home-example-name { margin: 16px 0 6px; font-size: .86rem; }
.home-example.is-tabbed .home-example-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-example-scroll { overflow-x: auto; }
.home-example table { width: 100%; border-collapse: collapse; font: .72rem/1.4 var(--mono); white-space: nowrap; }
.home-example th { padding: 9px 10px; border-bottom: 1px solid var(--line); background: #f6f8fc; color: var(--ink-soft); font-weight: 600; text-align: left; }
.home-example td { padding: 8px 10px; border-bottom: 1px solid #eef1f6; }
.home-example .is-key { color: #1d46c7; background: #f1f5ff; }
.home-example th.is-key { background: #e7eeff; }
.home-example .is-number { text-align: right; }
.home-example-link { margin: 12px 0 0; font-size: .8rem; line-height: 1.55; color: var(--ink-soft); }
.home-example-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px 16px; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--ink-soft); }
.home-example-foot a { flex: 0 0 auto; font-weight: 600; }

/* A job to start from */
.home-tasks { padding: 4px 0 56px; }
.home-task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-task-grid .home-path-card h3 { margin-top: 18px; }
.home-task-grid .home-path-card .home-path-action { margin-top: auto; }

/* Collections, with their size */
.home-collections { padding: 0 0 56px; }
.home-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-collection-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font: .66rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: #4d6b97 !important; }

.home-access { margin-bottom: 56px; }

/* The preparation behind the data */
.home-proof { margin-bottom: 56px; }
.home-proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.home-proof-grid > div { padding-top: 18px; border-top: 1px solid #cad5e5; }
.home-proof-grid .site-icon { width: 24px; height: 24px; color: #4d6b97; }
.home-proof-grid h3 { margin: 12px 0 8px; font-size: 1.08rem; }
.home-proof-grid p { margin: 0; font-size: .86rem; color: var(--ink-soft); }

/* The buyer's questions, beside the button */
.home-questions { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr); gap: 56px; margin-bottom: 60px; padding: 38px; border-top: 1px solid #ccd8ea; border-radius: 10px; background: #f7f9fd; }
.home-questions-head h2 { margin: 0 0 22px; font-size: 2rem; }
.home-questions-head .btn { display: flex; width: fit-content; }
.home-questions-head .text-link { font-size: .85rem; }
.home-question-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; margin: 0; }
.home-question-list dt { margin-bottom: 6px; font-size: .95rem; font-weight: 600; }
.home-question-list dd { margin: 0; font-size: .86rem; color: var(--ink-soft); }

/* Free things, last */
.home-resources { margin-bottom: 12px; }
.home-resources-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 60px; align-items: start; }
.home-resources-lists { display: grid; gap: 26px; }
.home-links { padding-top: 18px; border-top: 1px solid #cad5e5; }
.home-links h3 { margin: 0 0 8px; font-size: 1.1rem; }
.home-links > p { margin: 0 0 12px; font-size: .86rem; color: var(--ink-soft); }
.home-link-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .86rem; }
.home-link-row a { color: #2d4c76; text-decoration: underline; text-decoration-color: #b8c6dc; text-underline-offset: 3px; }
.home-links .text-link { padding-bottom: 0; font-size: .84rem; }

@media (max-width: 1000px) {
    .home-hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 40px 0 44px; }
    .home-example { max-width: 640px; }
    .home-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-questions { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px; }
    .home-resources-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 760px) {
    .home-task-grid, .home-collection-grid, .home-question-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .hero-copy h1 { font-size: 2.3rem; }
    .hero-copy .lead { font-size: 1rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .home-example { padding: 14px 14px 12px; }
    .home-example-top span:last-child { display: none; }
    .home-example-sentence { font-size: 1.1rem; }
    .home-example-tabs button { padding: 9px 9px; font-size: .78rem; }
    .home-example-foot { flex-direction: column; align-items: flex-start; }
    .home-proof-grid { grid-template-columns: minmax(0, 1fr); }
    .home-questions { padding: 22px; }
}
