/* Home and Featured */
.ask-box { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.ask-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.ask-title { display: flex; align-items: center; gap: 12px; }
.ask-title .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-soft); color: var(--indigo); display: flex; align-items: center; justify-content: center; }
.ask-title h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.15; color: var(--indigo); }
.ask-form { display: flex; flex-wrap: wrap; gap: 12px; }
.ask-form input { flex: 1 1 320px; min-height: 52px; border: 1px solid var(--line); border-radius: 999px; padding: 0 22px; font: inherit; font-size: 17px; color: var(--text); background: var(--white); }
.ask-form button { min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--indigo); color: var(--white); font-weight: 700; font-size: 17px; cursor: pointer; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.examples a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--thumb); color: var(--indigo); text-decoration: none; font-size: 14px; }

.update { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(120deg, var(--indigo) 0%, #433f8a 55%, var(--indigo-2) 100%); color: var(--white); padding: 28px 28px 56px; display: flex; flex-direction: column; gap: 18px; }
.update .photo { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.update .shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--indigo) 30%, rgba(42,38,87,0.55) 60%, rgba(42,38,87,0.15) 100%); }
.update > *:not(.photo):not(.shade):not(.wave) { position: relative; }
.update .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.update .tagline { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: var(--indigo); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }
.update .pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--indigo); animation: ftpulse 1.8s ease-out infinite; }
@keyframes ftpulse { 0% { box-shadow: 0 0 0 0 rgba(84,196,204,.7); } 70% { box-shadow: 0 0 0 10px rgba(84,196,204,0); } 100% { box-shadow: 0 0 0 0 rgba(84,196,204,0); } }
@media (prefers-reduced-motion: reduce) { .update .pulse { animation: none; } }
.update .date { font-size: 14px; color: #dcdbef; }
.update a { color: var(--white); }
.update .mid { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; }
.update h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.15; max-width: 620px; }
.update .sub { margin: 6px 0 0; font-size: 16px; color: #dcdbef; }
.update .stats { display: flex; gap: 40px; flex-wrap: wrap; }
.update .stat b { display: block; font-family: var(--font-mono); font-weight: 600; font-size: 56px; line-height: 1; color: #54c4cc; }
.update .stat span { display: block; font-size: 15px; margin-top: 6px; }
.update .go { align-self: flex-start; background: var(--teal); color: var(--indigo); text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; }
.update .go:hover { color: var(--indigo); }
.update .wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44px; }

.start { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.start .who { display: flex; align-items: center; gap: 16px; flex: 1 1 420px; }
.start img { width: 42px; height: 42px; }
.start h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--indigo); }
.start p { margin: 4px 0 0; font-size: 17px; color: var(--text-2); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.section-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--indigo); }
.section-head .when { font-size: 14px; color: var(--muted); margin-left: 12px; }
.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.recent a { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-item); padding: 14px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.recent .row1 { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-weight: 600; color: var(--indigo); }
.recent .dd { font-family: var(--font-mono); font-size: 13px; background: var(--indigo); color: var(--white); border-radius: 999px; padding: 2px 10px; }
.recent .meta { font-size: 14px; color: var(--muted); }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tool { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); text-decoration: none; color: var(--text); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tool .art { display: block; aspect-ratio: 1 / 1; border-radius: 12px; padding: 7%; }
.tool .art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tool .name { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.15; color: var(--indigo); }
.tool .desc { font-size: 15px; line-height: 1.45; color: var(--text-2); }
.tool .badge { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--indigo); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.tool.off .art, .tool.off .name { opacity: 0.38; filter: grayscale(1); }
.tool.off { cursor: default; }
@media (max-width: 640px) { /* phone: the four tools as a 2 x 2 grid */
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tool { padding: 10px; gap: 6px; }
  .tool .name { font-size: 17px; }
  .tool .desc { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .tool .badge { top: 8px; right: 8px; font-size: 11px; padding: 2px 8px; gap: 4px; }
}

/* video tiles (Home and Featured) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.tile .screen { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--text); border: 0; padding: 0; cursor: pointer; }
.tile .screen img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.tile .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 999px; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; }
.tile .kind { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--teal); color: var(--indigo); border-radius: 999px; padding: 3px 10px; }
.tile .info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.tile .title { font-weight: 600; font-size: 15px; }
.tile .sub { font-size: 13px; color: var(--muted); }
.tile .codeline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tile .codeline b { font-family: var(--font-mono); font-weight: 600; font-size: 16px; color: var(--indigo); }
.tile .codeline span { font-family: var(--font-mono); font-weight: 600; font-size: 13px; background: var(--indigo); color: var(--white); border-radius: 999px; padding: 2px 10px; }
.tile .lock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--indigo); background: #fff6df; border: 1px solid #f0d58a; border-radius: 10px; padding: 8px 12px; text-decoration: none; align-self: flex-start; }
.tile .notes { margin: 0; font-size: 14px; color: var(--text-2); background: var(--thumb); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; white-space: pre-line; }
.set { display: flex; flex-direction: column; gap: 14px; }
.set-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.set-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--indigo); }
.set-head .now { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--indigo); color: var(--white); border-radius: 999px; padding: 2px 10px; }
@media (max-width: 600px) { .ask-title h1 { font-size: 26px; } .update h2 { font-size: 26px; } .update .stat b { font-size: 44px; } .update .photo { width: 100%; opacity: 0.35; } }
