/* Create By Asking homepage (Nov 2026 redesign).
   The page opens on the free tools themselves, shown as real screenshots.
   Shared tokens, header, buttons and table filters come from style.css. */

.home .section + .section { border-top: 1px solid var(--line); }
.home .section h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.home-intro { color: var(--muted); max-width: 60ch; margin-top: 10px; font-size: 1.05rem; }

/* hero */
.home-hero { padding: 44px 0 56px; }
.home-hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.home-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em; }
.home-hero h1 .made { display: block; color: color-mix(in srgb, var(--ink) 42%, var(--paper)); }
.home-hero-side p { font-size: var(--step-1); color: var(--muted); max-width: 34ch; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 22px; }
.btn-pink { background: var(--ink); color: var(--paper); padding: 14px 22px; font-weight: 700; }
.btn-pink:hover { background: var(--tomato); color: #fff; }
.btn-plain { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.btn-plain:hover { color: var(--accent); }
@media (max-width: 820px) { .home-hero-top { grid-template-columns: 1fr; } .home-hero { padding-top: 24px; } }

/* the tool window */
.window { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.wtool { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; }
.wtool-shot { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--screen); }
.wtool-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; transition: transform .35s ease; }
.wtool:hover .wtool-shot img { transform: scale(1.03); }
.wtool:focus-visible { outline-offset: 4px; border-radius: 8px; }
.wtool-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding-inline: 2px; }
.wtool-name strong { font: 700 1.1rem/1.2 var(--display); letter-spacing: -0.01em; }
.wtool-name span { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.wtool:hover .wtool-name strong { color: var(--accent); }
.wtool-big { grid-column: span 2; grid-row: span 2; }
.wtool-big .wtool-shot { aspect-ratio: auto; flex: 1; min-height: 300px; }
.wtool-big .wtool-name strong { font-size: 1.5rem; }
.window-foot { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; color: var(--muted); }
.window-foot a { font-weight: 700; }
@media (max-width: 900px) { .window { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .window { gap: 22px 12px; margin-top: 26px; }
  .wtool-big { grid-row: auto; }
  .wtool-big .wtool-shot { min-height: 0; aspect-ratio: 16 / 10; }
  .wtool-big .wtool-name strong { font-size: 1.25rem; }
  .wtool-name strong { font-size: 1rem; }
  .wtool:not(.wtool-big) .wtool-name span { display: none; }
}

/* categories: flat pastel blocks, like sticky notes on a desk */
.hcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.hcat { display: block; padding: 20px 20px 24px; border-radius: 16px; text-decoration: none; color: var(--on-block); background: var(--block-cream); transition: transform .15s; }
.hcat:nth-child(8n+1) { background: var(--block-lime); }
.hcat:nth-child(8n+2) { background: var(--block-cream); }
.hcat:nth-child(8n+3) { background: var(--block-coral); }
.hcat:nth-child(8n+4) { background: var(--block-mint); }
.hcat:nth-child(8n+5) { background: var(--block-pink); }
.hcat:nth-child(8n+6) { background: var(--block-sky); }
.hcat:nth-child(8n+7) { background: var(--block-sand); }
.hcat:nth-child(8n+8) { background: var(--screen); color: #F4F3F0; }
.hcat strong { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 700 1.3rem/1.15 var(--display); letter-spacing: -0.02em; }
.hcat strong em { font: 600 .95rem/1 var(--body); font-style: normal; font-variant-numeric: tabular-nums; }
.hcat > span { display: block; margin-top: 6px; font-size: .95rem; opacity: .78; }
.hcat:hover { transform: translateY(-2px); }
.hcats-more { margin-top: 16px; color: var(--muted); }
@media (max-width: 900px) { .hcats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hcats { gap: 8px; } .hcat { padding: 16px 14px 18px; border-radius: 12px; } .hcat strong { font-size: 1.1rem; } .hcat > span { font-size: .88rem; } }

/* project list: same table and filters, plainer look with screenshots */
.home .list-filters { margin-top: 24px; }
.home .chip { font-family: var(--body); }
.home .table-card { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--line); }
.home .ptable { min-width: 0; }
.home .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.home .ptable td { padding: 12px 12px 12px 0; }
.home .ptable tr:last-child td { border-bottom: 1px solid var(--line); }
.home .ptable tbody tr:hover { background: none; }
.home .ptable tbody tr:hover strong { color: var(--accent); }
.home .pname { gap: 16px; }
.home .pname .picon { display: none; }
.pthumb { flex: none; width: 72px; height: 45px; border-radius: 6px; object-fit: cover; object-position: left top; background: var(--screen); display: block; }
.home .pname strong { font-weight: 700; }
.home .ptable td:nth-child(2) { width: 150px; color: var(--muted); }
.home .ptable td:nth-child(3) { display: none; }
.home .ptable td:nth-child(4) { width: 130px; text-align: right; padding-right: 0; }
.home .dots i { border-radius: 50%; width: 8px; height: 8px; }
@media (max-width: 760px) {
  .home .ptable, .home .ptable tbody { display: block; }
  .home .ptable tbody tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .home .ptable tbody tr[hidden] { display: none; }
  .home .ptable td { padding: 0; border: 0 !important; width: auto !important; }
  .home .ptable td:nth-child(1) { grid-column: 1 / -1; }
  .home .ptable td:nth-child(2) { padding-left: 76px; font-size: .88rem; color: var(--muted); }
  .home .ptable td:nth-child(3) { display: none; }
  .home .ptable td:nth-child(4) { font-size: .9rem; }
  .pthumb { width: 60px; height: 38px; }
}

/* how it works: a real chat, because asking is the process */
.chat { margin-top: 30px; display: grid; gap: 22px; max-width: 760px; }
.chat-step { display: grid; gap: 6px; }
.chat-you { justify-items: end; }
.chat-ai { justify-items: start; }
.chat-label { color: var(--muted); font-size: .92rem; font-weight: 600; }
.msg { max-width: 560px; padding: 14px 18px; border-radius: 18px; font-size: 1.05rem; }
.msg-you { background: var(--screen); color: #F6F5F3; border-bottom-right-radius: 4px; }
.msg-ai { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-note { margin-top: 24px; color: var(--muted); max-width: 64ch; }
:root[data-theme="dark"] .msg-you { background: var(--accent-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg-you { background: var(--accent-soft); } }

/* "make your own" band: a quiet pointer to the guides */
.home-diy .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.home-diy .wrap > div { max-width: 62ch; }
.home-diy p { margin-top: 8px; color: var(--muted); }

/* closing signup band: one big lime block */
.home .home-closing { background: var(--block-lime); color: var(--on-block); }
.home-closing .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; align-items: center; }
.home .home-closing h2 { color: var(--on-block); }
.home-closing p { color: #3A3A38; margin-top: 10px; }
.home-closing .signup input { border-color: transparent; background: #fff; color: #141414; }
.home-closing .btn-pink { background: #141414; color: #fff; }
.home-closing .btn-pink:hover { background: #E8430C; color: #fff; }
.home-closing .signup-note { color: #3A3A38; }
.home-closing .signup-done { color: #1E7F45; }
.home-closing .signup-error { color: #B3260A; }
@media (max-width: 820px) { .home-closing .wrap { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wtool-shot img { transition: none; } }
.home .site-footer { margin-top: 0; border-top: 0; }

/* the whole project row opens the project: the name link stretches over the row */
.home .ptable tbody tr { position: relative; cursor: pointer; }
.pname-link { color: inherit; text-decoration: none; }
.pname-link::after { content: ""; position: absolute; inset: 0; }
.pname-link:focus-visible { outline: none; }
.pname-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 6px; }
.home .row-link { position: relative; z-index: 1; }
.hcat:nth-child(8n+8) { box-shadow: inset 0 0 0 1px var(--line); }
