/* Discover: pictures made with Own B's AI, as a masonry wall on the site's white page. */

.discover-page { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.discover { color: var(--ink); padding: 4.5rem 0 5rem; }
.discover-head { max-width: 760px; margin: 0 auto 3.2rem; padding: 0 24px; text-align: center; }
/* the head is set like the landing page's sections: .label, .big and their body text */
.discover-kicker { margin: 0 0 .9rem; }

.discover-lede { margin: 1.1rem auto 1.8rem; max-width: 560px; color: var(--ink-2); text-wrap: balance; word-break: auto-phrase; }
.discover-cta p { text-wrap: balance; word-break: auto-phrase; }

/* the wall: four columns on a wide screen, two on a phone */
.discover-grid { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: flex-start; gap: 24px; }
.dcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dc { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--tint); container-type: inline-size; }
.dc img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease, ease); }
.dc:hover img { transform: scale(1.035); }
.dc-tag { position: absolute; left: 12px; bottom: 12px; padding: .28rem .7rem; border-radius: 999px; background: rgba(18, 18, 18, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: 600 .72rem/1.3 var(--font); letter-spacing: .02em; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.dc:hover .dc-tag, .dc:focus-within .dc-tag { opacity: 1; transform: none; }
@media (hover: none) { .dc-tag { opacity: 1; transform: none; } }
.dc { cursor: pointer; }
.dc:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* the sign-in window a picture opens: the picture on the left, the form on the right */
html.dsign-open { overflow: hidden; }
.dsign { width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 40px 90px -30px rgba(10, 14, 20, .55); }
.dsign[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); animation: dsign-in .35s var(--ease, ease); }
.dsign::backdrop { background: rgba(14, 18, 24, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes dsign-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dsign-pic { position: relative; background: var(--tint); min-height: 100%; }
.dsign-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dsign-main { position: relative; padding: 2.6rem 2.4rem 2rem; overflow: auto; }
.dsign-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--tint); cursor: pointer; }
.dsign-x:hover { background: var(--rule); }
.dsign-x svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.dsign-logo { display: block; width: 92px; height: auto; margin-bottom: 1.6rem; }
.dsign h2 { margin: 0; font: 600 1.5rem/1.25 var(--font); letter-spacing: -.02em; text-wrap: balance; }
.dsign-sub { margin: .6rem 0 1.5rem; color: var(--ink-2); font-size: .94rem; line-height: 1.55; text-wrap: pretty; }
.dsign-form { display: flex; flex-direction: column; gap: .9rem; }
.dsign-field { display: flex; flex-direction: column; gap: .35rem; font: 600 .82rem var(--font); color: var(--ink-2); }
.dsign-field input { font: 400 1rem var(--font); color: var(--ink); padding: .72rem .85rem; border: 1px solid var(--rule); border-radius: 12px; background: #fff; outline: 0; transition: border-color .2s, box-shadow .2s; }
.dsign-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dsign-check { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.dsign-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.dsign-error { margin: 0; padding: .6rem .8rem; border-radius: 10px; background: #fdecec; color: #a3261f; font-size: .88rem; }
.dsign-go { justify-content: center; width: 100%; margin-top: .2rem; padding-top: .8rem; padding-bottom: .8rem; cursor: pointer; }
.dsign-go:disabled { opacity: .7; cursor: default; }
.dsign-alt { margin: 1.2rem 0 0; text-align: center; font-size: .88rem; color: var(--muted); }
.dsign-alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.dsign-alt a:hover { text-decoration: underline; }
/* a phone: the picture as a short band over the form */
@media (max-width: 700px) {
  .dsign[open] { grid-template-columns: 1fr; grid-template-rows: 150px auto; }
  .dsign-pic img { object-position: 50% 22%; }
  /* the close button sits on the picture, at the window's corner */
  .dsign-main { position: static; padding: 1.6rem 1.4rem 1.4rem; }
  .dsign-logo { display: none; }
  .dsign h2 { font-size: 1.25rem; }
  .dsign-x { top: 12px; right: 12px; background: rgba(255, 255, 255, .92); }
}
@media (prefers-reduced-motion: reduce) { .dsign[open] { animation: none; } }

.discover-note { margin: 1.6rem auto 0; max-width: 1280px; padding: 0 24px; text-align: center; font-size: .82rem; color: var(--muted); }
.discover-cta { max-width: 640px; margin: 3.6rem auto 0; padding: 0 24px; text-align: center; }
.discover-cta p { margin: 0 0 1.4rem; font-size: 1.1rem; line-height: 1.55; color: var(--ink-2); }

@media (max-width: 700px) {
  .discover { padding-top: 3rem; }
  /* on a phone the four columns pour into two, with no gaps */
  .discover-grid { display: block; columns: 2; column-gap: 12px; padding: 0 16px; }
  .dcol { display: contents; }
  .dc { margin-bottom: 12px; break-inside: avoid; border-radius: 10px; }
  .dc-tag { left: 8px; bottom: 8px; font-size: .64rem; }
}
