/* Agveriq Learn home, Founder's Figma D1 layout (node 2:2, 2026-11-21) on the approved R44/R45 design. UIUX. */
.d1-topbar { gap: 1.2rem; }
.d1-nav { gap: .2rem 1.1rem; flex-wrap: wrap; }
.d1-search-box { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; min-width: 15rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--muted); text-decoration: none; font-size: .92rem; }
.d1-search-box:hover { border-color: var(--green); color: var(--ink); }
.d1-go { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .95rem; border-radius: .5rem; background: var(--green-dark); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.d1-go:hover { filter: brightness(1.1); }
.d1-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin: 1.1rem 0 .4rem; }
.d1-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: .5rem; font-weight: 700; text-decoration: none; }
.d1-btn-light { background: #fff; color: #102118; }
.d1-btn-ghost { border: 1px solid rgba(255,255,255,.85); color: #fff; }
.d1-btn:hover { filter: brightness(1.06); text-decoration: underline; }
.d1-badge { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; min-height: 26px; padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 750; line-height: 1.2; }
.d1-badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.d1-avail { background: #e3f1e7; color: #0e4e30; }
.d1-dev { background: #e6eef8; color: #1f4479; }
.d1-planned { background: #fff2d1; color: #5a4100; }

.d1-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.4rem auto 0; width: min(100% - 2rem, 1344px); padding: 1rem 1.2rem; border-radius: .8rem; background: var(--mint); }
.d1-trust > div { display: flex; gap: .8rem; align-items: center; padding: .2rem 1rem; }
.d1-trust > div + div { border-left: 1px solid var(--line); }
.d1-trust .ico { width: 1.6rem; height: 1.6rem; flex: none; color: var(--green-dark); }
.d1-trust p { display: grid; gap: .1rem; margin: 0; font-size: .92rem; }
.d1-trust span { color: var(--muted); font-size: .82rem; }

.d1-head-row { display: flex; gap: 1.6rem; align-items: center; margin-bottom: 1.4rem; }
.d1-head-row h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); white-space: nowrap; }
.d1-head-row p { margin: 0; padding-left: 1.6rem; border-left: 1px solid var(--line); color: var(--muted); max-width: 44rem; }
.d1-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.d1-pillar { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: var(--paper); color: inherit; text-decoration: none; }
.d1-pillar:hover { border-color: var(--green); box-shadow: var(--shadow); }
.d1-pillar:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.d1-photo { position: relative; display: block; aspect-ratio: 3 / 1.25; overflow: hidden; }
.d1-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.d1-photo .d1-badge { position: absolute; top: .6rem; right: .6rem; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.d1-pillar-body { display: flex; gap: .8rem; padding: 1rem 1rem 1.2rem; }
.d1-pillar-body > span:last-child { display: grid; gap: .4rem; }
.d1-pillar strong { font-size: 1.08rem; line-height: 1.25; }
.d1-pillar-body span span { color: var(--muted); font-size: .9rem; }
.d1-pillar em { font-style: normal; font-weight: 750; color: var(--green-dark); font-size: .92rem; }
.d1-icon { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: .55rem; background: var(--mint); color: var(--green-dark); }
.d1-icon .ico { width: 1.2rem; height: 1.2rem; }

.d1-tasks { padding: 1.8rem; border-radius: 1rem; background: var(--mint); }
.d1-sub { margin: .3rem 0 0; color: var(--muted); }
.d1-task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.d1-task-grid a { display: flex; gap: 1rem; height: 100%; padding: 1.1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--paper); color: inherit; text-decoration: none; }
.d1-task-grid a:hover { border-color: var(--green); }
.d1-task-grid a > span:last-child { display: grid; gap: .4rem; align-content: start; }
.d1-task-grid small { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.d1-task-grid strong { color: var(--green-dark); text-decoration: underline; font-size: 1.05rem; line-height: 1.3; }
.d1-num { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; border-radius: .5rem; background: #e3f1e7; color: #0e4e30; font-weight: 800; }

.d1-videos { border-top: 1px solid var(--line); }
.d1-video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.d1-video-grid li { display: flex; gap: .9rem; padding: .8rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--paper); }
.d1-video-grid img { flex: none; width: 9rem; height: 4.5rem; object-fit: cover; border-radius: .45rem; }
.d1-video-grid li > span { display: grid; gap: .3rem; align-content: start; }
.d1-video-grid strong { font-size: 1rem; }
.d1-video-grid li > span > span:not(.d1-badge) { color: var(--muted); font-size: .84rem; }

@media (prefers-color-scheme: dark) {
  .d1-avail, .d1-num { background: #17331f; color: #bfe6cb; }
  .d1-dev { background: #1b2a3d; color: #cfe0f6; }
  .d1-planned { background: #3a2f10; color: #f6e3a8; }
  .d1-go { background: var(--green); color: var(--paper); }
}
@media (max-width: 1100px) {
  .d1-pillars, .d1-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d1-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d1-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .8rem; }
  .d1-trust > div:nth-child(3) { border-left: 0; }
  .d1-search-box { min-width: 0; }
}
@media (max-width: 720px) {
  .d1-pillars, .d1-video-grid, .d1-task-grid, .d1-trust { grid-template-columns: 1fr; }
  .d1-trust > div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: .7rem; }
  .d1-head-row { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .d1-head-row p { padding-left: 0; border-left: 0; }
  .d1-head-row h2 { white-space: normal; }
  .d1-search-box span { display: none; }
  .d1-search-box { min-width: 44px; justify-content: center; }
  .d1-tasks { padding: 1.1rem; }
}
.d1-explore { padding-top: 2.6rem; }
.d1-videos { margin-top: 1.4rem; padding-top: 2.4rem; }
.d1-tasks-band { padding-top: 1.2rem; }
/* card titles are h3 for screen-reader heading navigation; keep the card look */
.d1-card-title { margin: 0; font-family: var(--sans); font-size: 1.05rem; font-weight: 750; line-height: 1.3; letter-spacing: 0; }
.d1-pillar .d1-card-title { font-size: 1.08rem; color: var(--ink); }
.d1-task-grid .d1-card-title { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.d1-video-grid .d1-card-title { font-size: 1rem; color: var(--ink); }

/* polish 2026-11-21 */
.d1-home .learn-hero h1 { max-width: none; font-size: clamp(2.1rem, 3.05vw, 2.85rem); line-height: 1.1; }
.d1-pillar-body { flex: 1; }
.d1-pillar-body > span:last-child { grid-template-rows: auto auto 1fr; }
.d1-pillar em { align-self: end; padding-top: .3rem; }
.d1-video-grid img { width: 7.5rem; height: 4.4rem; }
.d1-video-grid li { align-items: flex-start; }
.d1-search-box:focus-visible, .d1-go:focus-visible, .d1-btn:focus-visible, .d1-task-grid a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 720px) {
  .d1-home .learn-hero h1 { max-width: none; font-size: clamp(2rem, 9vw, 2.5rem); }
  .d1-ctas .d1-btn { flex: 1 1 auto; justify-content: center; }
  .d1-video-grid img { width: 6.5rem; height: 4rem; }
}
.d1-home .learn-hero h1 .nowrap { white-space: nowrap; }
@media (max-width: 420px) { .d1-home .learn-hero h1 .nowrap { white-space: normal; } }
/* R210 pack blocks */
.d1-tagline { margin: .2rem 0 .3rem; color: var(--gold); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.d1-status { margin: .6rem 0 0; color: inherit; font-size: .93rem; line-height: 1.55; }
.pack-status { padding: .8rem 1rem; border-left: 4px solid var(--green); border-radius: .4rem; background: var(--mint); font-size: .98rem; }
